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

Disassembly:
sub esp, 0x70
mov eax, dword [0x486090]
xor eax, dword [esp + 0x70]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x80]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x78], eax
mov ebx, ecx
je 0x404230
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x404230
cmp dword [ebx + 0x3e4], ebp
jle 0x404230
mov ecx, dword [ebx + 0x400]
push esi
mov esi, dword [esp + 0x88]
cmp esi, ecx
jne 0x403eff
cmp ecx, 0xffffffff
je 0x403eff
cmp dword [ebx + 0x3fc], ebp
jmp 0x40421c
lea ecx, [esp + 0x20]
push ecx
push eax
push ebp
mov dword [ebx + 0x400], esi
mov edx, dword [edi]
push ebp
mov ecx, edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0x320
mov dword [esp + 0x3c], 0x258
call dword [edx + 0x60]
cmp dword [0x49e924], 1
je 0x404000
mov ecx, dword [ebx + 0x3e4]
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x14], eax
jle 0x404214
lea esi, [ebx + 8]
lea ebp, [ebx + 0x3a0]
jmp 0x403f60
mov ecx, dword [esp + 0x88]
mov edx, dword [esi]
add eax, 4
cmp eax, ecx
mov ecx, esi
lea eax, [ebx + 0x33c]
je 0x403f7e
lea eax, [ebx + 0x2dc]
push eax
call dword [edx + 0x4c]
mov eax, dword [ebp + 4]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x58]
mov edx, dword [ebx + 0x3e8]
mov ecx, dword [ebx + 0x3f0]
sub ecx, edx
xor eax, eax
push 0xff00ff
lea edx, [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [edi]
mov dword [esp + 0x3c], ecx
push edx
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x44], 0x14
mov dword [esp + 0x20], eax
call dword [edx + 0x40]
mov ecx, dword [ebp - 4]
mov edi, dword [esp + 0x8c]
push eax
mov eax, dword [ebp]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, edi
call dword [eax + 0x64]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x3e4]
inc eax
add ebp, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x403f60
jmp 0x404214
cmp dword [ebx + 0x3e4], ebp
mov dword [esp + 0x10], ebp
jle 0x404214
mov eax, 0x10e
mov dword [esp + 0x14], eax
lea ebp, [ebx + 0x3a0]
jmp 0x404033
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x84]
mov esi, dword [esp + 0x88]
lea edx, [eax + 0x2d]
push edx
push 0x280
push eax
push 0
lea eax, [esp + 0x30]
push eax
call dword [0x47a208]
mov ecx, dword [ebx + 0x2d8]
mov edx, dword [edi]
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp]
push ecx
mov ecx, dword [ebp - 4]
sub eax, 0xd
sub ecx, 0xa
push eax
push ecx
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [esp + 0x10]
add edx, 4
cmp edx, esi
lea edi, [esp + 0x40]
mov ecx, 0xf
jne 0x4040dd
mov eax, dword [ebx + 0x380]
push 0xe1
push 0x280
push 0xb4
lea esi, [ebx + 0x344]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x2c], eax
call dword [0x47a208]
mov eax, dword [ebx + 0x2d8]
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx]
push 0
push 0
push eax
lea esi, [esp + 0x2c]
push esi
push eax
mov eax, dword [ebp]
sub eax, 0xd
push eax
mov eax, dword [ebp - 4]
sub eax, 0xa
push eax
call dword [edx + 0xb0]
jmp 0x4040ef
lea esi, [ebx + 0x2e4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x320]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x2d0]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov esi, eax
lea eax, [esp + 0x40]
push eax
call dword [0x47a02c]
mov edi, eax
push edi
push esi
call dword [0x47a030]
mov ecx, dword [ebx + 0x2d0]
mov edx, dword [ebp + 4]
push ecx
push edx
push 0
push 0
push esi
mov ecx, 0xef9740
mov dword [esp + 0x30], eax
call fcn.00411300
mov ecx, dword [ebx + 0x2d4]
xor eax, eax
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x190
mov dword [esp + 0x40], 0x14
mov edx, dword [ecx]
push 0xff444444
call dword [edx + 0x30]
mov edx, dword [ebx + 0x2d0]
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx]
push 0
push 0
push edx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [ebx + 0x2d4]
push edx
mov edx, dword [ebp]
inc edx
push edx
mov edx, dword [ebp - 4]
inc edx
push edx
call dword [eax + 0x94]
mov ecx, dword [ebx + 0x2d4]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0x30]
mov edx, dword [ebx + 0x2d0]
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx]
push 0
push 0
push edx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [ebx + 0x2d4]
push edx
mov edx, dword [ebp]
push edx
mov edx, dword [ebp - 4]
push edx
call dword [eax + 0x94]
mov ecx, dword [ebx + 0x2d0]
mov eax, dword [ecx]
push 0
push 0xff000000
call dword [eax + 0x30]
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call dword [0x47a030]
push edi
call dword [0x47a034]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x3e4]
inc eax
add esi, 0x2d
add ebp, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jl 0x404021
mov eax, dword [ebx + 0x3fc]
test eax, eax
jne 0x40422f
add ebx, 0x3e8
mov ecx, 0x4ae0d8
push ebx
call fcn.00407b60
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, dword [esp + 0x7c]
pop edi
pop ebp
pop ebx
call fcn.0043488e
add esp, 0x70
ret 8