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

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
mov esi, dword [esp + 0x88]
mov eax, dword [esi + 0x3c]
mov ebx, dword [esi + 0x38]
xor ebp, ebp
push edi
push 0x38
mov edi, ecx
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x54]
push ebp
push edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
call fcn.004441f0
push 0x38
push 0x45dec4
lea eax, [esp + 0x64]
push 0xfffffffffffffff1
push eax
mov dword [esp + 0x90], 0x402930
mov dword [esp + 0x8c], 0x402910
call fcn.004136f0
add esp, 0x1c
test ebx, ebx
ja 0x403300
cmp dword [esp + 0x30], ebp
jbe 0x4034ad
jmp 0x403300
mov ebp, dword [esp + 0x20]
add ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
adc eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x4c], eax
call ecx
test ebx, ebx
ja 0x403328
mov eax, dword [esp + 0x30]
cmp eax, 0x10000
jbe 0x403347
mov edx, dword [esp + 0x4c]
mov ecx, dword [edi + 4]
push edx
mov edx, dword [esi + 8]
push ebp
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x10]
push 0x10000
push ecx
push edx
call eax
jmp 0x403360
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 8]
push ebp
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [edi + 4]
push eax
push ecx
call edx
mov ebp, dword [esp + 0x28]
add esp, 0x18
test ebp, ebp
je 0x4034a9
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x60], 0x10000
mov dword [esp + 0x80], eax
mov dword [esp + 0x64], eax
cmp ebp, eax
jbe 0x403407
lea ebx, [ebx]
cmp dword [esp + 0x60], 0
jne 0x4033e4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [edi + 8]
push eax
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x14]
push 0x10000
push edx
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, 0x10000
add esp, 0x18
add dword [esp + 0x18], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], edx
adc dword [esp + 0x1c], 0
lea eax, [esp + 0x50]
push 0
push eax
call fcn.004138c0
add esp, 8
test eax, eax
jl 0x403574
cmp eax, 1
je 0x403407
cmp dword [esp + 0x54], 0
ja 0x4033a0
mov eax, 0x10000
sub eax, dword [esp + 0x60]
je 0x403444
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov edx, dword [edi + 8]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x14]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call ecx
mov edx, 0x10000
sub edx, dword [esp + 0x78]
add esp, 0x18
add dword [esp + 0x18], edx
adc dword [esp + 0x1c], 0
add dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x30]
mov eax, 0
adc dword [esp + 0x24], eax
sub ecx, ebp
sbb ebx, eax
add dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
adc dword [esp + 0x2c], eax
mov eax, ebp
sub eax, ecx
mov ecx, dword [esp + 0x3c]
push 0
push 0x64
sbb ecx, ebx
push ecx
push eax
call fcn.00444630
mov ecx, dword [esp + 0x3c]
push ecx
push ebp
push edx
push eax
call fcn.004445c0
mov edx, dword [esi + 0x2c]
push eax
call edx
add esp, 4
test ebx, ebx
ja 0x403300
jb 0x4034a9
cmp dword [esp + 0x30], 0
ja 0x403300
mov ebp, dword [esp + 0x18]
mov ecx, dword [edi + 8]
mov dword [esp + 0x60], 0x10000
mov dword [esp + 0x5c], ecx
lea esp, [esp]
cmp dword [esp + 0x60], 0
jne 0x403503
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0xc]
push ebx
push ebp
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x14]
push 0x10000
push eax
push ecx
call edx
mov eax, dword [edi + 8]
add esp, 0x18
add ebp, 0x10000
adc ebx, 0
mov dword [esp + 0x60], 0x10000
mov dword [esp + 0x5c], eax
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x50]
push 4
push ecx
call fcn.004138c0
add esp, 8
test eax, eax
je 0x4034c0
mov ebx, dword [esp + 0x1c]
mov eax, 0x10000
sub eax, dword [esp + 0x60]
je 0x40354b
mov ecx, dword [esi + 0xc]
push ebx
push ebp
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [edi + 8]
push eax
push ecx
call edx
mov eax, 0x10000
sub eax, dword [esp + 0x78]
add esp, 0x18
add ebp, eax
adc ebx, 0
lea ecx, [esp + 0x50]
push ecx
call fcn.00414ef0
mov edx, dword [esi + 0x2c]
push 0x64
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebx
call edx
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x78
ret 4
lea eax, [esp + 0x50]
push eax
call fcn.00414ef0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret 4