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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 0
call fcn.004011a0
add esp, 8
test eax, eax
jne 0x403bf3
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
cmp edx, 2
jne 0x4032f7
test ecx, ecx
jne 0x4032f7
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.004011a0
add esp, 8
test eax, eax
jne 0x403bf3
mov eax, dword [ebp - 0x38]
or eax, dword [ebp - 0x34]
je 0x4032dc
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.004011a0
add esp, 8
test eax, eax
jne 0x403bf3
cmp dword [ebp - 0x44], 0
mov eax, dword [esi + 4]
ja 0x4032d2
mov ecx, dword [ebp - 0x48]
jb 0x4032b5
cmp ecx, eax
ja 0x4032d2
add dword [esi], ecx
sub eax, ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.004011a0
add esp, 8
test eax, eax
je 0x403286
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004011a0
add esp, 8
test eax, eax
jne 0x403bf3
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp edx, 3
jne 0x403384
test ecx, ecx
jne 0x403384
lea eax, [ebp - 0xb0]
push eax
call fcn.00402ae0
mov eax, dword [ebx + 0x30]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x80], eax
mov eax, dword [ebx + 0x34]
push edi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push 8
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
call fcn.00402fa0
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [eax], ecx
lea eax, [ebp - 0xb0]
push eax
call fcn.004029e0
mov eax, dword [ebp - 0x34]
add esp, 0x2c
test eax, eax
jne 0x403bf1
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004011a0
add esp, 8
test eax, eax
jne 0x403bf1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp edx, 4
jne 0x4033dd
test ecx, ecx
jne 0x4033dd
push dword [ebp + 0x1c]
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp + 0x18]
lea edi, [ebx + 0x40]
push edi
push dword [eax]
push dword [ebp + 0x14]
push 0x40000000
push esi
push ebx
call fcn.00403ca0
add esp, 0x20
test eax, eax
jne 0x403bf1
mov eax, dword [ebx + 0x38]
add dword [edi], eax
mov eax, dword [ebx + 0x3c]
adc dword [edi + 4], eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004011a0
add esp, 8
test eax, eax
jne 0x403bf1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, edx
or eax, ecx
je 0x4039c7
cmp edx, 5
jne 0x403bec
test ecx, ecx
jne 0x403bec
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x3c], ecx
call fcn.00403c20
add esp, 8
test eax, eax
jne 0x403bf1
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x48], eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004011a0
add esp, 8
test eax, eax
jne 0x403bf1
mov edi, dword [ebp - 0xc]
mov eax, edi
or eax, dword [ebp - 8]
je 0x4036c0
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.004011a0
add esp, 8
test eax, eax
jne 0x403bf1
cmp dword [ebp - 0x44], 0
mov eax, dword [esi + 4]
ja 0x403bec
mov ecx, dword [ebp - 0x48]
jb 0x403471
cmp ecx, eax
ja 0x403bec
cmp dword [ebp - 8], 0
ja case.0x403493.16
cmp edi, 0x100
jae case.0x403493.16
add edi, 0xfffffff2
cmp edi, 7
ja case.0x403493.16
jmp dword [edi*4 + 0x403bf8]
test eax, eax
je 0x403bec
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov dl, byte [eax]
mov byte [ebp - 4], dl
cmp byte [ebp - 4], 0
lea edx, [eax + 1]
mov dword [ebp - 0x30], edx
mov dword [esi], edx
jne 0x4034c0
lea eax, [ecx - 1]
jmp 0x4034f0
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.00403c20
add esp, 8
test eax, eax
jne 0x403bf1
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax]
jae 0x403bec
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + ecx*8]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + ecx*8 + 4]
mov dword [ebp - 0x18], eax
test al, 1
jne 0x403bec
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x1c]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [edi]
push edi
call eax
add esp, 8
mov dword [ebx + 0x7c], eax
test eax, eax
je 0x403808
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40352d
mov dword [ebx + 0x80], eax
mov edi, eax
jmp 0x403554
push eax
mov eax, dword [edi]
push edi
call eax
add esp, 8
mov dword [ebx + 0x80], eax
test eax, eax
je 0x403808
mov edi, dword [ebp - 0x18]
push edi
push dword [ebp - 0x30]
push eax
call fcn.004098b0
add esp, 0xc
push dword [ebx + 0x7c]
push dword [ebp - 0x14]
push edi
push dword [ebx + 0x80]
call fcn.004030c0
add esp, 0x10
test eax, eax
jne 0x403bf1
cmp byte [ebp - 4], al
jne 0x4036a4
sub dword [esi + 4], edi
add dword [esi], edi
jmp 0x4036a4
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
push edi
push esi
call fcn.004020c0
add esp, 0xc
test eax, eax
jne 0x403bf1
push edi
push dword [ebp - 0x2c]
call fcn.00401030
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], 0
jmp 0x4036a4
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
push esi
call fcn.004020c0
add esp, 0xc
test eax, eax
jne 0x403bf1
jmp 0x4036a4
mov edi, dword [ebp + 0x1c]
lea eax, [ebx + 0x5c]
push edi
push eax
call fcn.00402bb0
push edi
lea eax, [ebx + 0x5c]
push eax
push dword [ebp - 0x14]
push esi
call fcn.004010d0
add esp, 0x18
test eax, eax
jne 0x403bf1
mov eax, dword [esi + 4]
test eax, eax
je 0x403bec
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
inc eax
mov cl, byte [eax - 1]
mov dword [esi], eax
test cl, cl
jne 0x40361a
mov ecx, esi
jmp 0x403650
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.00403c20
add esp, 8
test eax, eax
jne 0x403bf1
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [eax]
jae 0x403bec
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + ecx*8]
mov dword [ebp - 0x58], eax
mov eax, dword [edx + ecx*8 + 4]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x58]
push edi
lea eax, [ebx + 0x5c]
push eax
push dword [ebp - 0x14]
push ecx
call fcn.00401850
add esp, 0x10
test eax, eax
jne 0x403bf1
jmp 0x4036a4
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [eax]
lea eax, [ebx + 0x64]
push dword [ebp + 0x14]
push esi
push dword [ebp - 0x14]
push eax
call fcn.00401720
add esp, 0x18
test eax, eax
jne 0x403bf1
jmp 0x4036a4
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [eax]
lea eax, [ebx + 0x6c]
jmp 0x403676
sub eax, ecx
add dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004011a0
add esp, 8
test eax, eax
je 0x403434
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x78]
jne 0x403bec
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004011a0
add esp, 8
test eax, eax
jne 0x403bf1
mov eax, dword [ebp - 0xc]
or eax, dword [ebp - 8]
je 0x403715
push esi
call fcn.00402170
add esp, 4
test eax, eax
jne 0x403bf1
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004011a0
add esp, 8
test eax, eax
je 0x4036e4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
xor ecx, ecx
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp + 0x1c]
xorps xmm0, xmm0
push eax
mov eax, dword [eax]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], cl
mov byte [ebp - 3], cl
mov byte [ebp - 1], cl
mov byte [ebp - 2], 0x80
call eax
add esp, 8
mov dword [ebx + 0x74], eax
test eax, eax
je 0x403808
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x403770
mov dword [ebx + 0x78], esi
jmp 0x40378a
shl eax, 2
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [ebx + 0x78], eax
test eax, eax
je 0x403808
mov eax, dword [ebx + 0x48]
lea eax, [eax*8 + 8]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x403808
mov eax, dword [ebx + 0x48]
add eax, 7
shr eax, 3
test eax, eax
jne 0x4037f5
mov dword [ebx + 0x50], esi
push dword [ebp + 0x1c]
lea eax, [ebx + 0x54]
push dword [ebx + 0x48]
mov dword [ebp - 0x34], eax
push eax
call fcn.00402b50
add esp, 0xc
test eax, eax
jne 0x403bf1
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x403825
dec eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x60]
inc eax
mov cl, byte [eax - 1]
mov byte [ebp - 4], cl
mov dword [ebp - 0x60], eax
test cl, cl
je 0x403814
mov dword [ebp - 0x28], eax
jmp 0x403825
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [ebx + 0x50], eax
test eax, eax
jne 0x4037b7
pop edi
pop ebx
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x54], eax
lea edx, [edx + 7]
shr edx, 3
add edx, eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x14], ecx
jbe 0x403952
mov al, byte [ebp - 2]
mov dword [ebp - 0x20], edx
test al, al
jne 0x403870
mov eax, dword [ebx + 0x50]
mov bl, byte [ebp - 3]
dec ecx
shr ecx, 3
mov byte [ebp - 3], 0
mov byte [ecx + eax], bl
mov eax, dword [ebp - 0x34]
mov bl, byte [ebp - 1]
mov eax, dword [eax]
mov byte [ebp - 1], 0
mov byte [ecx + eax], bl
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 2], 0x80
cmp dword [ebp - 0x2c], 0
mov eax, dword [ebx + 0x4c]
mov dword [eax + ecx*8], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + ecx*8 + 4], edx
mov eax, dword [ebx + 0x58]
lea edx, [ecx*4]
mov dword [ebp - 0x30], edx
mov dword [edx + eax], 0
je 0x4039d0
mov ebx, dword [ebp - 0x2c]
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
shr eax, 3
test byte [eax + ebx], dl
mov ebx, dword [ebp + 8]
je 0x4039d0
cmp dword [ebp - 0x3c], 0
je 0x4038f4
mov ecx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x3c]
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
shr eax, 3
test byte [eax + ebx], dl
mov ebx, dword [ebp + 8]
jne 0x4038eb
mov al, byte [ebp - 3]
or al, byte [ebp - 2]
mov byte [ebp - 3], al
inc ecx
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x10]
jmp 0x4038fd
mov al, byte [ebp - 3]
or al, byte [ebp - 2]
mov byte [ebp - 3], al
cmp dword [ebp - 0x1c], 0
jne 0x403a64
mov eax, dword [ebx + 0x78]
lea edx, [ecx*4]
mov dword [edx + eax], 0xffffffff
mov edx, dword [ebp - 0x20]
mov al, byte [ebp - 2]
inc ecx
shr al, 1
mov dword [ebp - 0x10], ecx
mov byte [ebp - 2], al
cmp ecx, dword [ebp - 0x14]
jb 0x403842
cmp al, 0x80
je 0x403952
mov eax, dword [ebx + 0x50]
mov bl, byte [ebp - 3]
dec ecx
shr ecx, 3
mov byte [ecx + eax], bl
mov eax, dword [ebp - 0x34]
mov bl, byte [ebp - 1]
mov eax, dword [eax]
mov byte [ecx + eax], bl
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebx + 0x4c]
mov dword [eax + ecx*8], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + ecx*8 + 4], edx
jne 0x403bec
mov eax, dword [ebx + 0x74]
mov dword [eax + esi*4], ecx
cmp esi, dword [ebx + 4]
jae 0x4039b7
mov edi, dword [ebp - 0x10]
jmp 0x403980
cmp dword [ebp - 0x70], 0
je 0x403bec
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00403c20
add esp, 8
test eax, eax
jne 0x403bf1
cmp dword [ebp - 0x18], eax
jne 0x403bec
mov eax, dword [ebx + 0x74]
inc esi
mov dword [eax + esi*4], edi
cmp esi, dword [ebx + 4]
jb 0x403980
cmp dword [ebp - 0x70], 0
je 0x4039c7
cmp dword [ebp - 0x6c], 0
jne 0x403bec
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 0
jne 0x403a64
lea ebx, [ebx]
cmp esi, dword [ebx + 4]
jae 0x403bec
cmp dword [ebp - 0x70], 0
mov eax, dword [ebx + 0x74]
mov edi, 1
mov dword [eax + esi*4], ecx
mov dword [ebp - 0x18], edi
je 0x403a1b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00403c20
add esp, 8
test eax, eax
jne 0x403bf1
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x403a64
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 0x20]
movzx ecx, byte [eax + esi]
mov eax, dword [ebx + 0x1c]
add ecx, dword [eax + esi*4]
mov eax, dword [ebx + 0x24]
mov edi, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [ebp - 0x24]
add edx, edi
adc ecx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jb 0x403bec
ja 0x403a5b
cmp edx, edi
jb 0x403bec
mov ecx, dword [ebp - 0x10]
inc esi
jmp 0x4039e0
cmp dword [ebp - 0x2c], 0
mov eax, dword [ebx + 0x78]
lea edx, [ecx*4]
mov dword [edx + eax], esi
je 0x403a98
mov ebx, dword [ebp - 0x2c]
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
shr eax, 3
test byte [eax + ebx], dl
mov ebx, dword [ebp + 8]
jne 0x403918
dec dword [ebp - 0x1c]
jne 0x403b7a
mov eax, dword [ebx + 0x20]
movzx ecx, byte [eax + esi]
mov eax, dword [ebx + 0x1c]
add ecx, dword [eax + esi*4]
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + esi*4]
mov ebx, dword [ecx + eax*8]
mov dword [ebp - 0x40], ebx
mov ebx, dword [ecx + eax*8 + 4]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x24]
sbb ecx, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x50], ecx
jb 0x403bec
ja 0x403af2
cmp edx, eax
jb 0x403bec
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 8]
add eax, edx
adc ecx, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
cmp ecx, dword [ebp - 0x50]
jb 0x403bec
ja 0x403b16
cmp eax, edx
jb 0x403bec
cmp edi, 1
jne 0x403b44
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x403b44
mov eax, dword [ebp - 0x10]
mov ecx, eax
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, dword [ebx + 0xc]
shr eax, 3
test byte [eax + ecx], dl
je 0x403b44
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + esi*4]
jmp 0x403b5f
cmp byte [ebp - 4], 0
jne 0x403b56
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x403b71
test byte [eax], 0x80
je 0x403b71
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x28], 4
mov eax, dword [eax]
mov ecx, dword [ebx + 0x58]
mov edx, dword [ebp - 0x30]
mov dword [edx + ecx], eax
mov al, byte [ebp - 1]
or al, byte [ebp - 2]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 0x10]
inc esi
jmp 0x403918
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004011a0
add esp, 8
test eax, eax
jne 0x403bf1
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x24]
adc ecx, dword [ebp - 0x44]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
cmp ecx, dword [ebp - 0x44]
jb 0x403bec
ja 0x403bac
cmp edx, dword [ebp - 0x48]
jb 0x403bec
cmp byte [ebp - 4], 0
jne 0x403bc6
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x403bbe
test byte [eax], 0x80
jne 0x403bc6
mov ecx, dword [ebp - 0x10]
jmp 0x40391b
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x30]
mov eax, dword [eax]
add dword [ebp - 0x28], 4
mov dword [ebx + ecx], eax
mov al, byte [ebp - 1]
or al, byte [ebp - 2]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 1], al
jmp 0x40391b
mov eax, 0x10
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret