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

Disassembly:
push 0xffffffffffffffff
push 0x5ac62c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
mov eax, dword [0x620368]
xor eax, esp
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x26c], eax
mov eax, dword [esi + 0x6c4]
test eax, eax
push edi
je 0x40bac9
mov eax, dword [esi + 0x6c0]
mov eax, dword [eax]
add eax, 8
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x6c0]
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], edx
je 0x40b654
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call fcn.0057ad56
mov eax, dword [esi + 0x6c4]
add esp, 4
dec eax
mov dword [esi + 0x6c4], eax
mov ecx, dword [0x624458]
call fcn.00487090
mov ebp, eax
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x40]
push eax
mov eax, dword [ebp + 0x3c]
push ecx
push edx
push eax
call fcn.0048b070
fstp dword [esp + 0x20]
mov ecx, dword [0x62444c]
mov dword [esp + 0x24], ecx
lea edi, [esi + 0x1dc]
add esp, 0x10
mov ecx, edi
call fcn.005042b0
mov edx, dword [eax]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 8]
mov ecx, edi
mov dword [esp + 0x20], edx
call fcn.0047a950
fadd dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov al, byte [esp + 0x2c]
fstp dword [esp + 0x20]
test al, 0xc
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
jne 0x40baa1
xor edi, edi
mov dword [esp + 0x168], 0xf
mov dword [esp + 0x164], edi
mov byte [esp + 0x154], 0
cmp dword [esp + 0x30], edi
mov dword [esp + 0x27c], edi
lea ecx, [esp + 0x150]
je 0x40b73b
push 0x5bbc94
call fcn.00404cd0
mov eax, dword [esi + 0x6b8]
xor ecx, ecx
cmp eax, edi
setne cl
xor edx, edx
add ecx, 0xfd
cmp eax, edi
sete dl
mov dword [esp + 0x24], ecx
mov dword [esi + 0x6b8], edx
jmp 0x40b76e
cmp dword [esp + 0x34], edi
jne 0x40b75c
push 0x5bbc88
call fcn.00404cd0
lea ecx, [esp + 0x150]
call fcn.00507820
jmp 0x40bac9
push 0x5bbc80
call fcn.00404cd0
mov dword [esp + 0x24], 0xfb
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
cmp dword [esp + 0x28], edi
mov byte [esp + 0x27c], 1
jbe 0x40ba8a
xor esi, esi
mov dword [esp + 0x10], esi
jmp 0x40b7a0
mov esi, dword [esp + 0x10]
jmp 0x40b7a0
cmp esi, 0xd2
ja 0x40ba7d
xor edx, edx
mov eax, ebx
mov ecx, 0xa
div ecx
push edx
lea edx, [esp + 0x170]
push 0x5bbc78
push edx
mov ebx, eax
call fcn.0057b5e6
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0xa8]
push 0x5bbc50
push ecx
call fcn.00409aa0
lea edx, [esp + 0x184]
push edx
push eax
lea eax, [esp + 0xd4]
push eax
mov byte [esp + 0x2a0], 2
call fcn.00409b50
add esp, 0x24
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x280], 3
call fcn.0040b500
mov eax, dword [esp + 0xcc]
mov edi, 0x10
cmp eax, edi
jb 0x40b839
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0057ad56
add esp, 4
cmp dword [esp + 0xb0], edi
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], 0
mov byte [esp + 0xb8], 0
mov byte [esp + 0x27c], 1
jb 0x40b878
mov edx, dword [esp + 0x9c]
push edx
call fcn.0057ad56
add esp, 4
sub esp, 0x10
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
call fcn.0040adc0
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx*4 + 0x621f58]
mov ecx, dword [esp + 0x24]
push edx
call fcn.00529c00
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x88], eax
mov eax, edx
push eax
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0xa4], 0x3f800000
mov dword [esp + 0x90], 0x3f800000
mov dword [esp + 0x7c], 0x3f800000
mov dword [esp + 0x68], 0x3f800000
mov dword [esp + 0x9c], ecx
call fcn.0054468d
lea ecx, [esp + 0x58]
push ecx
lea edx, [ebp + 0xac]
push edx
mov eax, ecx
push eax
call fcn.00543d30
test esi, esi
push 0
mov dword [esp + 0x4c], esi
fild dword [esp + 0x4c]
push 0
jge 0x40b999
fadd dword [0x5bb7dc]
push ecx
lea ecx, [esp + 0xdc]
fstp dword [esp]
push ecx
call fcn.0054468d
fld dword [esp + 0x100]
lea edx, [esp + 0x58]
fchs
push edx
fstp dword [esp + 0x104]
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x118]
push ecx
call fcn.00543d30
lea edx, [esp + 0x58]
mov ecx, edi
push edx
lea esi, [esp + 0x114]
lea edi, [esp + 0x5c]
lea eax, [ebp + 0x6c]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
push ecx
call fcn.00543d30
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [ecx*4 + 0x621f58]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
push edx
call fcn.00529ee0
mov esi, dword [esp + 0x3c]
xor edi, edi
cmp esi, edi
je 0x40ba5c
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
push esi
call fcn.004095c0
push esi
call fcn.0057ad56
add esp, 0x14
mov ecx, dword [esp + 0x10]
add ecx, 0x1e
cmp ebx, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x10], ecx
ja 0x40b794
jmp 0x40ba8a
push 0x5bbc30
call fcn.004fa1e0
add esp, 4
lea ecx, [esp + 0x38]
call fcn.0040ae90
lea ecx, [esp + 0x150]
call fcn.00507820
jmp 0x40bac9
mov eax, dword [esp + 0x30]
mov edx, dword [0x622358]
test eax, eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
jne 0x40bac3
mov edx, dword [0x62235c]
push edx
call fcn.00529ee0
mov ecx, dword [esp + 0x274]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x268]
pop ebp
pop ebx
xor ecx, esp
call fcn.0057b3d4
add esp, 0x270
ret