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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [esp + 0x3c], ebx
mov dword [eax + 0xc], edx
call fcn.0040f150
mov esi, dword [ebx + 0x154]
mov edx, dword [ebx + 0x158]
mov eax, dword [ebx + 0x15c]
mov ecx, dword [ebx + 0x160]
add esi, dword [ebx + 0x1074]
add edx, dword [ebx + 0x1078]
sub eax, dword [ebx + 0x107c]
sub ecx, dword [ebx + 0x1080]
cmp dword [ebx + 0x106c], 0
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], ecx
je 0x40b82f
sub eax, esi
sub ecx, edx
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x20], ecx
xor ecx, ecx
xor edi, edi
cmp dword [ebx + 0x106c], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
jle 0x40b580
mov eax, dword [ebx + 0x1068]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
mov ecx, esi
call eax
test al, al
je 0x40b562
mov edx, dword [esi]
mov eax, dword [edx + 0xf4]
mov ecx, esi
call eax
test al, al
jne 0x40b562
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0x114]
push eax
push ecx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call edx
cmp dword [esp + 0x30], 0
jne 0x40b4f5
inc dword [esp + 0xc]
jmp 0x40b52d
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
mov ecx, esi
call edx
cmp dword [esp + 0x30], eax
jge 0x40b511
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
mov ecx, esi
call edx
mov dword [esp + 0x30], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x70]
mov ecx, esi
call edx
cmp dword [esp + 0x30], eax
jle 0x40b52d
mov eax, dword [esi]
mov edx, dword [eax + 0x70]
mov ecx, esi
call edx
mov dword [esp + 0x30], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call edx
add eax, 8
mov dword [esp + 0x28], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
add edx, dword [eax]
add edx, dword [esp + 0x30]
add edi, edx
inc dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [ebx + 0x106c]
mov dword [esp + 0x10], eax
jl 0x40b498
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
xor eax, eax
mov edx, dword [esp + 0x14]
dec edx
imul edx, dword [ebx + 0x1084]
add edi, edx
cmp ecx, eax
mov dword [esp + 0x24], eax
jle 0x40b5af
mov eax, dword [esp + 0x1c]
sub eax, edi
cdq
idiv ecx
xor ecx, ecx
test eax, eax
setl cl
dec ecx
and ecx, eax
mov dword [esp + 0x24], ecx
xor eax, eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
mov edx, dword [ebx]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x38]
mov ecx, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edi
call eax
mov edx, dword [ebx]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x24]
mov ecx, ebx
call eax
test eax, eax
je 0x40b602
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1a8]
call eax
test eax, eax
je 0x40b602
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
sub dword [esp + 0x14], eax
xor edi, edi
cmp dword [ebx + 0x106c], edi
mov dword [esp + 0x28], edi
jle 0x40b82f
mov ecx, dword [ebx + 0x1068]
mov esi, dword [ecx + edi*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
mov ecx, esi
call eax
test al, al
je 0x40b81e
mov edx, dword [esi]
mov eax, dword [edx + 0xf4]
mov ecx, esi
call eax
test al, al
je 0x40b653
mov edx, dword [ebx]
mov eax, dword [edx + 0x1b0]
push edi
mov ecx, ebx
call eax
jmp 0x40b81e
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x48]
cmp byte [ebx + 0x10bc], 0
mov dword [esp + 0x30], eax
je 0x40b68f
fild dword [esi + 0x12a0]
fimul dword [esp + 0x14]
fdiv qword [0x80bef0]
call fcn.0048cb70
mov edi, eax
jmp 0x40b6af
mov ecx, dword [esp + 0x34]
mov edx, dword [esi]
mov edx, dword [edx + 0x114]
push ecx
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call edx
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
test edi, edi
jne 0x40b711
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0xc]
jne 0x40b6df
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x50]
mov ecx, 0
sub eax, dword [esp + 0x10]
sets cl
dec ecx
and ecx, eax
mov edi, ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
cmp edi, eax
jge 0x40b6f7
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov edi, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
cmp edi, eax
jle 0x40b745
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
mov edi, eax
jmp 0x40b745
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
cmp edi, eax
jge 0x40b729
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov edi, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
cmp edi, eax
jle 0x40b741
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
mov edi, eax
sub dword [esp + 0x10], edi
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
mov ebx, eax
test ebx, ebx
jne 0x40b764
mov ebx, dword [ebp + 0x14]
sub ebx, dword [esp + 0x54]
sub ebx, dword [esp + 0x4c]
sub ebx, dword [ebp + 0xc]
test ebx, ebx
jge 0x40b768
xor ebx, ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
cmp ebx, eax
jge 0x40b780
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
mov ebx, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
cmp ebx, eax
jle 0x40b79e
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
mov ebx, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov eax, dword [ebp + 0xc]
add edx, ecx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x4c]
add edx, eax
mov eax, dword [esp + 0x50]
add eax, edi
add eax, dword [esp + 0x48]
sub esp, 0x10
add eax, ecx
mov ecx, dword [esp + 0x5c]
add ecx, ebx
add ecx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x74], ecx
mov ecx, esp
mov dword [ecx], ebx
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0x6c]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 0xc], eax
mov ecx, esi
call edx
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x1084]
mov ecx, dword [esp + 0x50]
lea edx, [eax + ecx]
add edx, edi
add edx, dword [esp + 0x48]
add eax, ecx
add dword [esp + 0x18], edx
add eax, edi
sub dword [esp + 0x30], eax
mov edi, dword [esp + 0x28]
inc edi
cmp edi, dword [ebx + 0x106c]
mov dword [esp + 0x28], edi
jl 0x40b614
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10