Function at 0x3420573d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x380
mov eax, dword [0x342226fc]
xor eax, esp
mov dword [esp + 0x37c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38c]
push edi
xor edi, edi
xor ebx, ebx
cmp ebp, edi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
je 0x34251670
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [eax + 4], edi
mov edx, dword [ebp + 0x1c]
mov dword [edx + 8], edi
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0xc], edi
mov word [esp + 0x80], di
cmp dword [eax], 1
push esi
mov dword [esp + 0x3c], eax
jb 0x3425167a
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push 1
push 0x82
lea edx, [esp + 0x110]
push edx
push eax
push ecx
call fcn.342058dd
mov esi, eax
cmp esi, edi
jl 0x34251977
mov edi, dword [esp + 0x10]
push 3
push 0x80
push 0
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x5c]
push 0x1c
lea eax, [esp + 0x64]
push eax
push 0
push 0
lea ecx, [esp + 0x128]
push ecx
push 0x3421c868
push edx
push edi
call fcn.34201bc2
mov esi, eax
test esi, esi
jl 0x34251977
mov ecx, dword [esp + 0x54]
push 0
push 0
push ecx
lea eax, [esp + 0x114]
push edi
mov dword [ebp + 0x20], eax
call fcn.34205d4e
mov esi, eax
test esi, esi
je 0x34251914
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x10]
push edx
push edi
call fcn.34203f26
test esi, esi
jge 0x34251968
cmp esi, 0xfffff9bd
jne 0x342058ac
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x14]
push ecx
push ebp
lea edx, [esp + 0x114]
push edx
push eax
push edi
call fcn.34205f23
mov esi, eax
cmp esi, 0xfffff1f0
jne 0x34251758
xor esi, esi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add eax, 1
mov dword [ecx + 0xc], eax
test esi, esi
jl 0x34251977
cmp esi, 0xfffff401
je 0x342518f6
mov eax, esi
pop esi
mov ecx, dword [esp + 0x388]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.341f1b18
add esp, 0x380
ret 4
mov dword [esp + 0x28], 4
jmp 0x342519bc
push ebp
call fcn.342538f6
mov esi, eax
test esi, esi
jl 0x34251977
mov ecx, dword [ebp]
mov ebx, dword [ecx + 8]
lea edx, [ebx + 0x18]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edx
jmp 0x34251a6c
or dword [ebx + 0x1c], 0x4000
or dword [edi], 0x4001
jmp case.0x34251b8d.2
mov eax, 0xfffffc15
jmp 0x342058c3
xor esi, esi
jmp 0x342058c0
mov eax, 0x40
jmp 0x34251c4d
mov dword [esp + 0x28], 1
jmp 0x342519bc
mov dword [esp + 0x28], 2
jmp 0x342519bc
mov eax, 0x40
jmp 0x342519ff
mov eax, 0x200
jmp 0x34251a8b
mov eax, 0xffdc
mov dword [esp + 0x14], eax
jmp 0x34251b64
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov ebx, dword [edx + 8]
mov ecx, 1
shr edi, 1
cmp dword [esp + 0x28], ecx
mov dword [esp + 0x48], ebx
jne 0x342516e8
mov dword [ebp + 0x2c], ecx
jmp 0x34251721
mov edx, dword [esp + 0x60]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x60]
push 4
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
mov dword [ebp + 0x2c], 2
call fcn.342034df
mov esi, eax
test esi, esi
jl 0x34251977
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
and eax, 8
push eax
push edx
push edi
push 0
mov ecx, ebx
mov edx, ebp
call fcn.3427d1cd
mov esi, eax
test esi, esi
jl 0x34251977
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0x18]
or dword [eax], ecx
mov ebx, dword [esp + 0x1c]
mov edi, eax
jmp case.0x34251b8d.2
test esi, esi
jl 0x34251977
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp]
mov eax, dword [ecx + 8]
lea edi, [edx - 1]
imul edi, edi, 0x2c
lea ecx, [esp + 0x18]
push ecx
push 0
add edi, 0x34
push edi
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], eax
call fcn.34313bc0
mov esi, eax
test esi, esi
jl 0x34251977
mov edx, dword [esp + 0x18]
push edi
push 0
push edx
call sub.msvcr80.dll_memset
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x54]
mov dword [ebp], eax
mov dword [ebp + 0x2c], 3
mov dword [eax], ecx
mov ebx, dword [esp + 0x24]
add esp, 0xc
add ebx, 8
cmp word [edi], 0
jne 0x342517f6
add edi, 2
cmp word [edi], 0
je 0x34251805
mov eax, edi
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x342517e1
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
jmp 0x34251805
or dword [ebx + 0x20], 0x4000
mov dword [esp + 0x30], 0
cmp dword [esp + 0x10], 0
mov dword [ebp + 0x24], 0
je 0x342518b1
mov edx, dword [esp + 0x20]
sub dword [esp + 0x10], 1
mov eax, edi
mov dword [ebx], edx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x34251827
sub eax, edx
mov edx, dword [esp + 0x44]
push 1
sar eax, 1
mov ebp, eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push eax
mov ecx, edi
call fcn.3427d1cd
mov esi, eax
test esi, esi
jl 0x342518cf
cmp dword [esp + 0x1c], 0
jne 0x34251867
test byte [ebx + 0x20], 2
mov dword [esp + 0x1c], 0
je 0x3425186f
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x18]
add dword [eax + 4], 1
lea edi, [edi + ebp*2 + 2]
add ebx, 0x2c
cmp word [edi], 0
mov dword [esp + 0x30], edi
je 0x342518a2
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x3425188f
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
cmp dword [esp + 0x10], 0
jne 0x34251817
mov ebp, dword [esp + 0x44]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x3c]
xor edx, edx
cmp dword [esp + 0x1c], edx
mov dword [eax + 8], ecx
setne dl
add edx, 1
mov dword [eax + 4], edx
jmp 0x3420589e
mov ebp, dword [esp + 0x44]
jmp 0x34251977
push eax
call fcn.34205fb9
cmp esi, 0xfffff1ee
mov dword [ebp], 0
jne 0x342058b4
jmp 0x3425167a
mov esi, 0xfffffc0d
jmp 0x342058c0
mov edx, dword [esp + 0x3c]
add edx, 8
mov dword [esp + 0x40], edx
mov edi, ebx
lea ebx, [ebx]
jmp 0x34251bca
mov edx, dword [edx + 8]
cmp dword [edx], 0
je case.0x34251b8d.2
jmp 0x34251649
mov eax, dword [edx + 8]
cmp word [eax], 0
je case.0x34251b8d.2
jmp 0x34251649
mov edx, dword [edx + 8]
cmp dword [edx], 0
jne case.0x34251b8d.2
jmp 0x342519aa
mov eax, dword [edx + 8]
cmp word [eax], 0
jne case.0x34251b8d.2
jmp 0x342519aa
test eax, eax
mov esi, eax
jl 0x34205868
jmp 0x34205870
mov eax, dword [ebp]
test eax, eax
jne 0x342518d8
jmp 0x342518de
mov eax, dword [esp + 0x14]
cmp eax, 4
je 0x3425194b
cmp eax, 2
je 0x34251959
cmp eax, 1
jne case.0x34251b8d.2
mov ecx, dword [edx + 8]
cmp byte [ecx], 0
jne case.0x34251b8d.2
or dword [ebx + 0x1c], 0x8000
or dword [edi], 0x8001
jmp case.0x34251b8d.2
mov ecx, dword [esp + 0x58]
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x60]
push 0x200
lea eax, [esp + 0x19c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.342034df
mov esi, eax
test esi, esi
jne 0x34205851
mov eax, dword [esp + 0x14]
shr eax, 1
cmp eax, 0x40
jae 0x342516a5
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x190]
push edx
mov word [esp + eax*2 + 0x194], 0
call fcn.34201b6e
add esp, 8
test eax, eax
je 0x34251b21
mov edx, dword [ebp + 0xc]
push 0
push 0x18
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x198]
push ecx
push edx
push eax
call fcn.34203056
mov esi, eax
cmp esi, 0xfffffa1d
je 0x34251cc7
test esi, esi
jl 0x34205851
cmp dword [ebp], 0
je 0x34251623
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
add dword [esp + 0x38], 1
add esi, 0xc
cmp eax, 0x200
mov dword [esp + 0x40], esi
jae 0x342516af
add eax, 2
push eax
lea eax, [esp + 0x190]
push eax
lea ecx, [esp + 0x8c]
push ecx
call sub.msvcr80.dll_memcpy
add esp, 0xc
xor eax, eax
lea edi, [esi - 4]
mov dword [edi], eax
lea ecx, [esp + 0x24]
push ecx
mov dword [edi + 4], eax
push 0
mov dword [edi + 8], eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x8c]
push 0x34
mov dword [ebp + 0x24], edx
push ebx
mov dword [esp + 0x28], edi
mov dword [esi + 4], eax
call fcn.34313bc0
mov esi, eax
test esi, esi
jl 0x34251977
mov edx, dword [esp + 0x24]
push 0x34
push 0
push edx
call sub.msvcr80.dll_memset
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
mov dword [ebp], edx
mov ebx, dword [eax]
mov eax, dword [esp + 0x2c]
add esp, 0xc
add ebx, 8
mov dword [ebx], eax
mov ecx, dword [esp + 0x70]
mov dword [ebx + 0x24], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x1c], ebx
mov dword [ebx + 0x28], edx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x54]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x70]
push 0xffdc
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.342034df
mov esi, eax
test esi, esi
jne 0x34205851
mov eax, dword [esp + 0x14]
cmp eax, 0xffdc
jae 0x342516b9
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 8]
mov byte [eax + ecx + 1], 0
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0
mov ecx, dword [esp + 0x28]
xor eax, eax
add ecx, 0xffffffff
cmp ecx, 4
mov dword [esp + 0x34], eax
ja case.0x34251b8d.2
jmp dword [ecx*4 + 0x34251900]
mov eax, dword [esp + 0x14]
cmp eax, 4
je 0x34251928
cmp eax, 2
je 0x34251939
cmp eax, 1
jne case.0x34251b8d.2
mov ecx, dword [edx + 8]
cmp byte [ecx], 0
jne 0x34251649
mov edx, dword [esp + 0x24]
mov dword [edx], 1
jmp 0x34251cc7
mov edx, dword [esp + 0x60]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x60]
push 0x200
lea ecx, [esp + 0x19c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call fcn.342034df
mov esi, eax
test esi, esi
jne 0x34205851
test byte [esp + 0x18c], 1
je 0x34251cc7
mov ecx, dword [esp + 0x5c]
push eax
push eax
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x60]
push 0x200
lea eax, [esp + 0x19c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.342034df
mov esi, eax
test esi, esi
jne 0x34205851
mov eax, dword [esp + 0x14]
shr eax, 1
cmp eax, 0x40
jae 0x34251681
lea ecx, [esp + 0x18c]
push 0x3421cb98
push ecx
mov word [esp + eax*2 + 0x194], 0
call fcn.34201b6e
add esp, 8
test eax, eax
je 0x3425168b
lea edx, [esp + 0x18c]
push 0x3421cbb8
push edx
call fcn.34201b6e
add esp, 8
test eax, eax
je 0x34251698
lea eax, [esp + 0x18c]
push 0x3421cbf8
push eax
call fcn.34201b6e
add esp, 8
test eax, eax
je 0x34251616
lea ecx, [esp + 0x18c]
push 0x3421cc0c
push ecx
call fcn.34201b6e
add esp, 8
test eax, eax
je 0x34251ce9
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
push 0
push 1
push eax
push ecx
call fcn.34205d4e
mov esi, eax
test esi, esi
je 0x34251bca
jmp 0x34205851
mov dword [esp + 0x28], 5
jmp 0x342519bc