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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x4464f4]
xor eax, esp
mov dword [esp + 0x70], eax
fldz
mov eax, dword [ebp + 8]
push ebx
fst qword [esp + 0x48]
push esi
fstp qword [esp + 0x44]
push edi
push 1
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push 3
push 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x20], 0
call dword [0x4844b8]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x30], esi
jne 0x40b4c0
push 0x440140
mov ecx, ebx
call fcn.00401339
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0040d67d
mov esp, ebp
pop ebp
ret 0xc
push 4
lea edi, [ebx + 0xc]
push edi
push 0x1006
push 0xffff
push esi
call dword [0x4844cc]
push 4
push edi
push 0x1005
push 0xffff
push esi
call dword [0x4844cc]
cmp dword [ebx + 0x10], 0x80
lea edi, [ebx + 0x10]
je 0x40b534
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3c]
push eax
push 4
push 0
push esi
mov dword [esp + 0x2c], 4
call dword [0x4844bc]
test eax, eax
je 0x40b526
push 0x440140
mov ecx, ebx
call fcn.00401339
jmp 0x40b534
push 4
push edi
push 4
push 0
push esi
call dword [0x4844cc]
cmp dword [ebx + 0x18], 0
je 0x40b57a
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
push 3
push 0
push esi
mov dword [esp + 0x2c], 4
call dword [0x4844bc]
test eax, eax
je 0x40b569
push 0x440140
mov ecx, ebx
call fcn.00401339
jmp 0x40b57a
push 4
lea eax, [ebx + 0x14]
push eax
push 3
push 0
push esi
call dword [0x4844cc]
cmp dword [ebx + 0x24], 0
lea edi, [ebx + 0x24]
je 0x40b5c0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0xe
push 0
push esi
mov dword [esp + 0x2c], 4
call dword [0x4844bc]
test eax, eax
je 0x40b5b2
push 0x440140
mov ecx, ebx
call fcn.00401339
jmp 0x40b5c0
push 4
push edi
push 0xe
push 0
push esi
call dword [0x4844cc]
push esi
mov ecx, ebx
call fcn.00401082
mov esi, dword [esp + 0x40]
push esi
call dword [0x484504]
mov edi, eax
test edi, edi
jne 0x40b643
push esi
call dword [0x4844f0]
cmp eax, 0xffffffff
jne 0x40b61b
call dword [0x4844e8]
push eax
push esi
push 0x44011c
call fcn.0040134d
add esp, 0xc
mov dword [0x457c74], 2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0040d67d
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x20], 0
je 0x40b636
push esi
push 0x43fe20
mov dword [ebx + 0x20], 0
call fcn.0040134d
add esp, 8
push esi
call dword [0x4844f0]
mov dword [esp + 0x60], eax
jmp 0x40b64e
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x60], edx
cmp dword [ebp + 0xc], 0
mov word [esp + 0x5c], 2
mov word [esp + 0x5e], 0
jne 0x40b708
cmp dword [ebx + 0x30], 0
jne 0x40b708
push esi
call dword [0x4844f0]
cmp eax, 0xffffffff
jne 0x40b6a2
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x60]
push eax
push ecx
push edx
call dword [0x4844f8]
push eax
mov eax, dword [edi]
push eax
push 0x43fde0
call fcn.0040134d
add esp, 0x14
jmp 0x40b708
cmp dword [ebx + 0x20], 0
je 0x40b6e7
movsx ecx, word [edi + 0xa]
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
push 2
push ecx
push eax
call dword [0x484500]
mov esi, eax
test esi, esi
je 0x40b6e7
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
call dword [0x4844f8]
mov ecx, dword [esi]
push eax
push ecx
push 0x43fde0
call fcn.0040134d
add esp, 0x14
jmp 0x40b708
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x60]
push edx
push eax
push ecx
call dword [0x4844f8]
push eax
push 0x43fda4
call fcn.0040134d
add esp, 0x10
cmp dword [0x457c68], 0
jne 0x40bc4e
mov edi, dword [esp + 0x14]
cmp dword [0x457c6c], 0
je 0x40b7ba
cmp dword [ebp + 0xc], 0
mov dword [0x457c6c], 0
jne 0x40b7ba
cmp dword [ebx + 0x30], 0
jne 0x40b7ba
cmp dword [ebx + 0x60], 0
jne 0x40b74a
fldz
jmp 0x40b74d
fld qword [ebx + 0x50]
mov edx, dword [esp + 0x60]
fstp qword [esp + 0x38]
push edx
call dword [0x4844f8]
push eax
push 0x43fd84
call fcn.0040134d
mov esi, dword [ebx + 0x64]
mov ecx, edi
sub ecx, esi
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
push eax
push ecx
push esi
push edi
push 0x43f8a8
call fcn.0040134d
push 0x43f86c
call fcn.0040134d
fld qword [ebx + 0x58]
add esp, 8
fstp qword [esp + 0x10]
fld qword [ebx + 0x48]
fstp qword [esp + 8]
fld qword [esp + 0x50]
fstp qword [esp]
push 0x43fd3c
call fcn.0040134d
add esp, 0x1c
cmp dword [ebx], 0
jne 0x40b7d9
mov eax, edi
add edi, 1
cmp eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], edi
jne 0x40b7e0
sub edi, 1
mov dword [esp + 0x14], edi
jmp 0x40bc4e
add edi, 1
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x24], 0
call fcn.004011b8
lea ecx, [esp + 0x40]
push ecx
mov esi, eax
call dword [0x484348]
mov edx, dword [0x446160]
mov eax, dword [edx + 4]
mov ecx, 0x446160
call eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [0x446160]
mov dword [0x446168], ecx
mov dword [0x44616c], edx
mov edx, dword [eax + 8]
mov ecx, 0x446160
call edx
cmp esi, 0xffffffff
jne 0x40b84a
push 1
jmp 0x40bc09
cmp esi, 0x271d
je 0x40bc1e
mov eax, dword [esp + 0x30]
push eax
mov ecx, ebx
call fcn.004010c8
mov esi, eax
cmp esi, 0xffffffff
je 0x40bc42
lea ecx, [esp + 0x20]
push ecx
call dword [0x484354]
test esi, esi
jne 0x40b936
cmp dword [ebx + 0x34], esi
je 0x40b8b2
mov edx, dword [esp + 0x60]
push edx
call dword [0x4844f8]
movzx ecx, word [esp + 0x2a]
movzx edx, word [esp + 0x28]
push eax
movzx eax, word [esp + 0x30]
push eax
push ecx
push edx
push 0x43fcc0
call fcn.0040134d
add esp, 0x14
jmp 0x40b910
cmp dword [ebx + 0x38], 0
je 0x40b8f7
mov eax, dword [esp + 0x60]
push eax
call dword [0x4844f8]
movzx ecx, word [esp + 0x2c]
movzx edx, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2c]
push ecx
movzx ecx, word [esp + 0x2e]
push edx
movzx edx, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push ecx
push edx
push eax
push 0x43fc7c
call fcn.0040134d
add esp, 0x20
jmp 0x40b910
mov ecx, dword [esp + 0x60]
push ecx
call dword [0x4844f8]
push eax
push 0x43fc60
call fcn.0040134d
add esp, 8
mov dword [0x457c74], 1
cmp dword [ebx + 0x28], 2
jne 0x40bc0f
push 0x64
push 0x1b8
call dword [0x484334]
jmp 0x40bc0f
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x23]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x1b]
push ecx
lea edx, [esp + 0x78]
push edx
push eax
mov ecx, ebx
call fcn.00401159
mov ecx, 0x446160
mov esi, eax
call fcn.004011a9
cmp esi, 0xffffffff
je 0x40bb39
call dword [0x484338]
fldz
fcomp qword [esp + 0x48]
fnstsw ax
test ah, 5
jp 0x40b9b9
mov ecx, 0x446160
call fcn.0040122b
fcomp qword [0x43f928]
fnstsw ax
test ah, 0x41
jne 0x40b9b9
mov ecx, 0x446160
call fcn.0040122b
fsub qword [esp + 0x48]
fabs
fld qword [esp + 0x50]
fsub st(1), st(0)
fxch st(1)
fmul qword [0x43fc18]
faddp st(1)
fstp qword [esp + 0x50]
mov ecx, 0x446160
call fcn.0040122b
fstp qword [esp + 0x48]
cmp dword [ebx + 0x34], 0
je 0x40b9ee
movzx ecx, word [esp + 0x2c]
movzx edx, word [esp + 0x2a]
movzx eax, word [esp + 0x28]
push ecx
push edx
push eax
push 0x43fc00
call fcn.0040134d
add esp, 0x10
jmp 0x40ba25
cmp dword [ebx + 0x38], 0
je 0x40ba25
movzx ecx, word [esp + 0x2c]
movzx edx, word [esp + 0x2a]
movzx eax, word [esp + 0x28]
push ecx
movzx ecx, word [esp + 0x2a]
push edx
movzx edx, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2c]
push ecx
push edx
push eax
push 0x43fbd8
call fcn.0040134d
add esp, 0x1c
mov esi, dword [ebx + 0x3c]
test esi, esi
jne 0x40ba2e
mov esi, edi
movzx ecx, byte [esp + 0x13]
push ecx
mov ecx, 0x446160
call fcn.0040122b
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x74]
sub esp, 8
fstp qword [esp]
push edx
push eax
call dword [0x4844f8]
push eax
push esi
push 0x43fb9c
call fcn.0040134d
add esp, 0x1c
cmp dword [ebx + 0x40], 0
je 0x40baa3
mov cl, byte [esp + 0x13]
cmp cl, 0x80
jbe 0x40ba78
mov eax, 0xff
jmp 0x40ba90
cmp cl, 0x40
jbe 0x40ba84
mov eax, 0x80
jmp 0x40ba90
mov dl, 0x1f
cmp dl, cl
sbb eax, eax
and eax, 0x21
add eax, 0x1f
movzx ecx, cl
sub eax, ecx
push eax
push 0x43fb90
call fcn.0040134d
add esp, 8
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x40bac6
cmp dword [ebx + 0x44], esi
je 0x40bac6
fld qword [esp + 0x50]
sub esp, 8
fstp qword [esp]
push 0x43fb7c
call fcn.0040134d
add esp, 0xc
cmp dword [ebx + 0x18], esi
je 0x40bade
movzx edx, byte [esp + 0x1f]
push edx
push 0x43fb70
call fcn.0040134d
add esp, 8
push 0x43f51c
call fcn.0040134d
add esp, 4
mov dword [0x457c74], esi
cmp dword [ebx + 0x28], 1
jne 0x40bb04
push 0x64
push 0x1b8
call dword [0x484334]
cmp dword [ebx + 0x90], esi
je 0x40bb19
mov ecx, ebx
call fcn.00401271
mov dword [ebx + 0x90], esi
add dword [ebx + 0x64], 1
mov ecx, 0x446160
call fcn.0040122b
sub esp, 8
mov ecx, ebx
fstp qword [esp]
call fcn.00401118
jmp 0x40bbfb
cmp dword [ebx + 0x34], 0
je 0x40bb72
mov eax, dword [0x457c74]
mov ecx, dword [esp + 0x60]
push eax
push ecx
call dword [0x4844f8]
movzx edx, word [esp + 0x30]
movzx ecx, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x32]
push edx
push eax
push ecx
push 0x4400e4
call fcn.0040134d
add esp, 0x18
jmp 0x40bbde
cmp dword [ebx + 0x38], 0
je 0x40bbbe
mov edx, dword [0x457c74]
mov eax, dword [esp + 0x60]
push edx
push eax
call dword [0x4844f8]
movzx ecx, word [esp + 0x30]
movzx edx, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push ecx
movzx ecx, word [esp + 0x32]
push edx
movzx edx, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push ecx
push edx
push eax
push 0x44009c
call fcn.0040134d
add esp, 0x24
jmp 0x40bbde
mov ecx, dword [0x457c74]
mov edx, dword [esp + 0x60]
push ecx
push edx
call dword [0x4844f8]
push eax
push 0x440078
call fcn.0040134d
add esp, 0xc
mov dword [0x457c74], 1
cmp dword [ebx + 0x28], 2
jne 0x40bbfb
push 0x64
push 0x1b8
call dword [0x484334]
cmp dword [ebx], 0
jne 0x40bc05
cmp edi, dword [ebx + 0x2c]
je 0x40bc4e
mov eax, dword [ebx + 8]
push eax
call dword [0x48432c]
cmp dword [0x457c68], 0
je 0x40b719
jmp 0x40bc4e
mov ecx, dword [esp + 0x30]
push ecx
call dword [0x4844c0]
mov eax, 0x271d
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0040d67d
mov esp, ebp
pop ebp
ret 0xc
push 0x44006c
mov ecx, ebx
call fcn.00401339
cmp dword [ebx + 0x60], 0
jne 0x40bc59
fldz
fstp qword [ebx + 0x50]
cmp dword [ebp + 0xc], 0
jne 0x40bce4
cmp dword [ebx + 0x30], 0
jne 0x40bce4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40bcd5
mov edx, dword [esp + 0x60]
push edx
call dword [0x4844f8]
push eax
push 0x43fd84
call fcn.0040134d
mov edi, dword [ebx + 0x64]
mov ecx, esi
sub ecx, edi
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div esi
push eax
push ecx
push edi
push esi
push 0x43f8a8
call fcn.0040134d
push 0x43f86c
call fcn.0040134d
fld qword [ebx + 0x58]
add esp, 8
fstp qword [esp + 0x10]
fld qword [ebx + 0x48]
fstp qword [esp + 8]
fld qword [ebx + 0x50]
fstp qword [esp]
push 0x43f67c
call fcn.0040134d
add esp, 0x1c
jmp 0x40bce8
push 0x43fb4c
call fcn.0040134d
add esp, 4
jmp 0x40bd10
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40bd10
cmp dword [esp + 0x34], 0
je 0x40bd10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov edx, dword [ebx + 0x64]
lea esi, [ebx + 0x48]
lea edi, [eax + 8]
mov ecx, 7
mov dword [eax + 4], edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
push eax
call dword [0x4844c0]
cmp eax, 0xffffffff
jne 0x40bd2c
push 0x44005c
mov ecx, ebx
call fcn.00401339
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040d67d
mov esp, ebp
pop ebp
ret 0xc