Function at 0x40dd10
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 0x40dd7a
mov eax, dword [ebx + 0x17c]
test eax, eax
je 0x40dd7a
mov ecx, dword [ebx + 0x288]
test ecx, ecx
je 0x40dd50
call fcn.004301c0
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 0x40dd7a
mov ecx, dword [ebx + 0xc0]
test ecx, ecx
je 0x40dd7a
mov eax, dword [ebx + 0xcc]
push eax
call fcn.0040dbf0
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x40dd87
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x40ddbf
mov ecx, dword [ebx + 0xd0]
push ecx
mov ecx, dword [ebx + 0xc0]
call fcn.0040dbf0
test eax, eax
je 0x40ddcd
mov edx, dword [ebx + 0xd8]
push eax
mov eax, dword [ebx + 0xc8]
push edx
push eax
mov ecx, esi
call fcn.00541c50
jmp 0x40ddcd
mov ecx, dword [ebx + 0xc8]
push ecx
mov ecx, esi
call fcn.005418b0
mov edx, dword [ebx + 0x10]
mov dword [0x21f1d68], edx
fld dword [ebx + 0x14]
fsub dword [0x6a84d8]
lea edx, [esp + 0x40]
push edx
fstp dword [0x21f1d6c]
mov eax, dword [ebx + 0x18]
mov dword [0x21f1d70], 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.005cf7eb
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.005cf7eb
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, 0x21f3340
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.00537720
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, 0x21f3344
call fcn.0053f9b0
push fcn.0058bfb0
push 2
push 0x40
lea ecx, [esp + 0x98]
push ecx
call fcn.00405c10
cmp dword [ebx + 0xcc], 0x74
jge 0x40e1e4
mov eax, dword [ebx + 0xe0]
test eax, eax
jne 0x40e1e4
mov eax, dword [ebx + 0xe4]
test eax, eax
jne 0x40e1e4
xor ebp, ebp
jmp 0x40e010
mov eax, dword [ebx + ebp*4 + 0x74]
test eax, eax
je 0x40e1da
cmp ebp, 1
jne 0x40e0d1
mov edx, dword [ebx + 0x78]
mov al, byte [edx + 0x4c]
cmp al, 5
je 0x40e088
cmp al, 0x31
je 0x40e088
cmp al, 0x32
je 0x40e088
cmp al, 0xf
je 0x40e088
cmp al, 0x41
je 0x40e088
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.00428500
lea edi, [esp + 0xcc]
jmp 0x40e164
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.00428500
lea edi, [esp + 0xcc]
jmp 0x40e164
movzx ecx, byte [eax + 0x4c]
add ecx, 0xfffffff3
cmp ecx, 0x33
ja case.0x40e0e4.15
movzx edx, byte [ecx + 0x40e298]
jmp dword [edx*4 + 0x40e290]
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 0x40e149
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.00428500
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 0x40e19c
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.00545710
fld dword [0x21f1d68]
mov eax, ebp
shl eax, 6
fadd dword [esp + eax + 0xbc]
fstp dword [esp + eax + 0xbc]
fld dword [0x21f1d6c]
fadd dword [esp + eax + 0xc0]
fstp dword [esp + eax + 0xc0]
lea eax, [esp + eax + 0xc4]
fld dword [0x21f1d70]
fadd dword [eax]
fstp dword [eax]
inc ebp
cmp ebp, 2
jl 0x40e010
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, 0x21f3340
call fcn.005377d0
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, 0x21f3344
call fcn.00540930
mov eax, dword [ebx + 0xe0]
test eax, eax
jne 0x40e26a
mov eax, dword [ebx + 0xe4]
test eax, eax
jne 0x40e26a
lea edi, [esp + 0x8c]
lea esi, [ebx + 0x74]
mov ebp, 2
mov ecx, dword [esi]
test ecx, ecx
je 0x40e261
mov eax, dword [ebx + 0xc8]
mov edx, dword [ebx + 0xdc]
push edi
push eax
push edx
call fcn.004287b0
add esi, 4
add edi, 0x40
dec ebp
jne 0x40e247
mov ecx, 0x21f3340
call fcn.00537d10
mov ecx, 0x21f3340
call fcn.00537d30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x23c
ret