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

Disassembly:
sub esp, 0x23c
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x2ac]
test eax, eax
push esi
push edi
je 0x40e2ea
mov eax, dword [ebx + 0x17c]
test eax, eax
je 0x40e2ea
mov ecx, dword [ebx + 0x288]
test ecx, ecx
je 0x40e2c0
call fcn.004306a0
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
mov eax, dword [ebx + 0x3cc]
test eax, eax
jne 0x40e2ea
mov ecx, dword [ebx + 0xc0]
test ecx, ecx
je 0x40e2ea
mov eax, dword [ebx + 0xcc]
push eax
call fcn.0040e160
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x40e2f7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x40e32f
mov ecx, dword [ebx + 0xd0]
push ecx
mov ecx, dword [ebx + 0xc0]
call fcn.0040e160
test eax, eax
je 0x40e33d
mov edx, dword [ebx + 0xd8]
push eax
mov eax, dword [ebx + 0xc8]
push edx
push eax
mov ecx, esi
call fcn.0053c8a0
jmp 0x40e33d
mov ecx, dword [ebx + 0xc8]
push ecx
mov ecx, esi
call fcn.0053c500
mov edx, dword [ebx + 0x10]
mov dword [0x21f4090], edx
fld dword [ebx + 0x14]
fsub dword [0x6a95c0]
lea edx, [esp + 0x40]
push edx
fstp dword [0x21f4094]
mov eax, dword [ebx + 0x18]
mov dword [0x21f4098], eax
fld dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
fchs
fstp dword [esp + 0x44]
lea eax, [esp + 0x14]
fld dword [ebx + 0x24]
push eax
fchs
mov dword [esp + 0x4c], ecx
fstp dword [esp + 0x50]
call fcn.005d19bf
fld dword [ebx + 0x28]
fld dword [ebx + 0x2c]
fld dword [ebx + 0x30]
fld st(1)
fmul dword [esp + 0x18]
fld st(1)
fmul dword [esp + 0x14]
fsubp st(1)
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
fmul dword [esp + 0x10]
lea ecx, [esp + 0x20]
fld st(2)
push ecx
fmul dword [esp + 0x1c]
fsubp st(1)
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
fxch st(1)
mov dword [esp + 0x28], edx
fmul dword [esp + 0x18]
mov edx, ecx
fxch st(1)
push edx
fmul dword [esp + 0x18]
fsubp st(1)
fstp dword [esp + 0x44]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], eax
call fcn.005d19bf
fld dword [esp + 0x14]
fmul dword [esp + 0x28]
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x34]
mov eax, dword [esp + 0x34]
fld dword [esp + 0x18]
mov dword [esp + 0x40], eax
fmul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
fld dword [esp + 0x10]
mov dword [esp + 0x4c], eax
fmul dword [esp + 0x28]
fsubp st(1)
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
fld dword [esp + 0x10]
mov dword [esp + 0x44], ecx
fmul dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
fld dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
fmul dword [esp + 0x20]
fsubp st(1)
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
fld dword [esp + 0x28]
mov dword [esp + 0x48], edx
fchs
mov ecx, dword [esp + 0x48]
fstp dword [esp + 0x6c]
mov edx, dword [esp + 0x40]
fld dword [esp + 0x10]
mov eax, dword [esp + 0x44]
fchs
mov dword [esp + 0x70], ecx
fstp dword [esp + 0x54]
lea ecx, [esp + 0x10c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, 0x21f5668
mov dword [esp + 0x68], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x8c], 0x3f800000
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.00532460
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x110]
push eax
movzx eax, byte [ebx + 0x277]
lea ecx, [esp + 0x38]
push ecx
movzx ecx, byte [ebx + 0x177]
lea edx, [esp + 0x38]
push edx
lea edx, [ecx + eax*2]
movzx eax, byte [ebx + 0x28d]
lea eax, [eax + edx*2]
lea ecx, [eax + eax*4]
shl ecx, 6
push esi
add ecx, 0x21f566c
call fcn.0053a600
push fcn.0059e710
push 2
push 0x40
lea ecx, [esp + 0x98]
push ecx
call fcn.00405c10
cmp dword [ebx + 0xcc], 0x74
jge 0x40e754
mov eax, dword [ebx + 0xe0]
test eax, eax
jne 0x40e754
mov eax, dword [ebx + 0xe4]
test eax, eax
jne 0x40e754
xor ebp, ebp
jmp 0x40e580
mov eax, dword [ebx + ebp*4 + 0x74]
test eax, eax
je 0x40e74a
cmp ebp, 1
jne 0x40e641
mov edx, dword [ebx + 0x78]
mov al, byte [edx + 0x4c]
cmp al, 5
je 0x40e5f8
cmp al, 0x31
je 0x40e5f8
cmp al, 0x32
je 0x40e5f8
cmp al, 0xf
je 0x40e5f8
cmp al, 0x41
je 0x40e5f8
movzx eax, byte [ebx + 0x296]
mov ecx, dword [ebx + 0xc8]
push eax
mov eax, dword [esp + 0x20]
push ecx
sub esp, 0x40
mov edi, esp
mov ecx, 0x10
lea esi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xdc]
push eax
push ecx
lea eax, [esp + 0x25c]
push eax
mov ecx, edx
call fcn.00428a60
lea edi, [esp + 0xcc]
jmp 0x40e6d4
movzx ecx, byte [ebx + 0x297]
mov eax, dword [ebx + 0xc8]
push ecx
push eax
mov eax, dword [ebx + 0xdc]
sub esp, 0x40
mov edi, esp
mov ecx, 0x10
lea esi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x64]
push ecx
push eax
lea ecx, [esp + 0x19c]
push ecx
mov ecx, edx
call fcn.00428a60
lea edi, [esp + 0xcc]
jmp 0x40e6d4
movzx ecx, byte [eax + 0x4c]
add ecx, 0xfffffff3
cmp ecx, 0x33
ja case.0x40e654.15
movzx edx, byte [ecx + 0x40e808]
jmp dword [edx*4 + 0x40e800]
movzx ecx, byte [ebx + 0x295]
mov edx, dword [ebx + 0xc8]
push ecx
push edx
sub esp, 0x40
mov edi, esp
mov ecx, 0x10
lea esi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x64]
push ecx
lea ecx, [esp + 0x218]
jmp 0x40e6b9
movzx ecx, byte [ebx + 0x294]
mov edx, dword [ebx + 0xc8]
push ecx
push edx
sub esp, 0x40
mov edi, esp
mov ecx, 0x10
lea esi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x64]
push ecx
lea ecx, [esp + 0x1d8]
mov edx, dword [ebx + 0xdc]
push edx
push ecx
mov ecx, eax
call fcn.00428a60
mov edx, ebp
shl edx, 6
lea edi, [esp + edx + 0x8c]
mov esi, eax
mov eax, dword [ebx + ebp*4 + 0x74]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40e70c
mov edx, ebp
shl edx, 6
lea eax, [esp + edx + 0x8c]
push eax
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x38]
push edx
call fcn.005403a0
fld dword [0x21f4090]
mov eax, ebp
shl eax, 6
fadd dword [esp + eax + 0xbc]
fstp dword [esp + eax + 0xbc]
fld dword [0x21f4094]
fadd dword [esp + eax + 0xc0]
fstp dword [esp + eax + 0xc0]
lea eax, [esp + eax + 0xc4]
fld dword [0x21f4098]
fadd dword [eax]
fstp dword [eax]
inc ebp
cmp ebp, 2
jl 0x40e580
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, 0x21f5668
call fcn.00532510
movzx edx, byte [ebx + 0x277]
movzx eax, byte [ebx + 0x177]
lea ecx, [eax + edx*2]
movzx edx, byte [ebx + 0x28d]
lea eax, [edx + ecx*2]
lea ecx, [eax + eax*4]
shl ecx, 6
add ecx, 0x21f566c
call fcn.0053b580
mov eax, dword [ebx + 0xe0]
test eax, eax
jne 0x40e7da
mov eax, dword [ebx + 0xe4]
test eax, eax
jne 0x40e7da
lea edi, [esp + 0x8c]
lea esi, [ebx + 0x74]
mov ebp, 2
mov ecx, dword [esi]
test ecx, ecx
je 0x40e7d1
mov eax, dword [ebx + 0xc8]
mov edx, dword [ebx + 0xdc]
push edi
push eax
push edx
call fcn.00428d10
add esi, 4
add edi, 0x40
dec ebp
jne 0x40e7b7
mov ecx, 0x21f5668
call fcn.00532a50
mov ecx, 0x21f5668
call fcn.00532a70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x23c
ret