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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
push edi
mov dword [esp + 0xe8], 0xd
je 0x40dfe6
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 0x68]
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
mov edi, dword [eax + 0x2b0]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x58], eax
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x40e019
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x18]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0xa0]
cmp dword [edi + 0x1c], 3
jne 0x40e5da
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 0xc]
test eax, eax
je 0x40e5da
mov eax, dword [esi + 0x18]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0xb8], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0xbc], edx
fld qword [esp + 0xb8]
fmul qword [eax + 0x2c0]
mov edx, dword [ecx + 8]
mov dword [esp + 0xc0], edx
mov edx, dword [ecx + 0xc]
mov dword [esp + 0xc4], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0xc8], edx
mov edx, dword [ecx + 0x14]
mov dword [esp + 0xcc], edx
fld qword [esp + 0xc8]
fmul qword [eax + 0x2c8]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0xd0], edx
mov edx, dword [ecx + 0x1c]
faddp st(1)
mov dword [esp + 0xd4], edx
fld qword [esp + 0xc0]
mov edx, dword [ecx + 0x20]
fmul qword [eax + 0x2c0]
mov dword [esp + 0xd8], edx
fld qword [esp + 0xd0]
mov edx, dword [ecx + 0x24]
fmul qword [eax + 0x2c8]
mov dword [esp + 0xdc], edx
mov edx, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
faddp st(1)
mov dword [esp + 0xe0], edx
fld qword [esp + 0xc8]
mov dword [esp + 0xe4], ecx
fmul qword [eax + 0x2d8]
fld qword [esp + 0xb8]
fmul qword [eax + 0x2d0]
faddp st(1)
fstp qword [esp + 0x98]
fld qword [esp + 0xd0]
fmul qword [eax + 0x2d8]
fld qword [esp + 0xc0]
fmul qword [eax + 0x2d0]
faddp st(1)
fstp qword [esp + 0xa0]
fxch st(1)
fmul qword [edi + 0x38]
fld qword [esp + 0x98]
fmul qword [edi + 0x40]
faddp st(1)
fstp qword [esp + 0x88]
fmul qword [edi + 0x38]
fld qword [esp + 0xa0]
fmul qword [edi + 0x40]
faddp st(1)
fld qword [esp + 0x98]
fmul qword [edi + 0x50]
fld qword [esp + 0x88]
fmul qword [edi + 0x48]
faddp st(1)
fld qword [esp + 0xa0]
fmul qword [edi + 0x50]
fld st(2)
fmul qword [edi + 0x48]
faddp st(1)
fstp qword [esp + 0xa0]
fld qword [esp + 0x88]
fmul qword [eax + 0x2b8]
fstp qword [esp + 0x88]
fxch st(1)
fmul qword [eax + 0x2b8]
fstp qword [esp + 0x90]
fmul qword [eax + 0x2b8]
fld qword [esp + 0xa0]
fmul qword [eax + 0x2b8]
fstp qword [esp + 0xa0]
fld qword [esp + 0x88]
fmul qword [eax + 0x300]
fstp qword [esp + 0x88]
mov edx, dword [esi + 0x5c]
mov dword [esp + 0x80], edx
fmul qword [eax + 0x300]
fstp qword [esp + 0x98]
fld qword [eax + 0x310]
fld st(0)
fmul qword [eax + 0x2d0]
fld qword [eax + 0x2c0]
fmul qword [0x449118]
faddp st(1)
fstp qword [esp + 0x78]
fmul qword [eax + 0x2d8]
fld qword [eax + 0x2c8]
fmul qword [0x449118]
faddp st(1)
fstp qword [esp + 0x70]
fld qword [eax + 0x320]
fstp qword [esp + 0x60]
fld qword [eax + 0x328]
fstp qword [esp + 0x68]
fld qword [eax + 0x330]
fstp qword [esp + 0x120]
fld qword [eax + 0x338]
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
fstp qword [esp + 0x118]
test ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ebx
jle 0x40e5cb
mov edx, dword [edi]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x44]
push eax
push 8
lea ecx, [esp + 0x140]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x4c]
push eax
push ebx
push ecx
mov ecx, edi
call dword [edx + 0xc]
fld qword [esp + 0x10]
mov ecx, eax
cmp ecx, 1
mov eax, dword [esi + 0x18]
fmul qword [eax + 0x2b8]
mov dword [esp + 0x84], ecx
fadd qword [eax + 0x2f0]
fstp qword [esp + 0x10]
jne 0x40e2d6
mov edx, dword [esp + 0xc]
cmp byte [edx], 0x20
jne 0x40e2d6
fld qword [esp + 0x10]
fadd qword [eax + 0x2f8]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
mov ecx, dword [esi + 4]
fmul qword [eax + 0x300]
push eax
fstp qword [esp + 0x14]
fld qword [esp + 0x24]
fmul qword [eax + 0x2b8]
fstp qword [esp + 0x24]
mov edx, dword [ecx]
fld qword [esp + 0x14]
fmul qword [eax + 0x2c0]
fld qword [esp + 0x24]
fmul qword [eax + 0x2d0]
faddp st(1)
fstp qword [esp + 0x44]
fld qword [esp + 0x14]
fmul qword [eax + 0x2c8]
fld qword [esp + 0x24]
fmul qword [eax + 0x2d8]
faddp st(1)
fstp qword [esp + 0x3c]
fld qword [esp + 0x6c]
fadd qword [esp + 0x74]
fst qword [esp + 0xfc]
fld qword [esp + 0x64]
fadd qword [esp + 0x7c]
fst qword [esp + 0x104]
fld st(1)
fmul qword [eax + 0x10]
fld st(1)
fmul qword [eax]
faddp st(1)
fadd qword [eax + 0x20]
fstp qword [esp + 0x2c]
fxch st(1)
fmul qword [eax + 0x18]
fxch st(1)
fmul qword [eax + 8]
faddp st(1)
fadd qword [eax + 0x28]
fstp qword [esp + 0x5c]
call dword [edx + 0x30]
mov ecx, dword [esi + 0x18]
call fcn.00418c80
fld qword [esp + 0x58]
sub esp, 0x30
fstp qword [esp + 0x28]
mov ecx, eax
fld qword [esp + 0x58]
mov dword [esi + 0x18], eax
fstp qword [esp + 0x20]
fld qword [esp + 0xd0]
fstp qword [esp + 0x18]
fld qword [esp + 0xc8]
fstp qword [esp + 0x10]
fld qword [esp + 0xc0]
fstp qword [esp + 8]
fld qword [esp + 0xb8]
fstp qword [esp]
call fcn.00416aa0
mov edx, dword [esp + 0x34]
fld qword [esp + 0x38]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esi + 0x18]
sub esp, 0x20
fstp qword [esp + 0x18]
fld qword [esp + 0x6c]
fstp qword [esp + 0x10]
fld qword [esp + 0x124]
fstp qword [esp + 8]
fld qword [esp + 0x12c]
fstp qword [esp]
push edx
call dword [eax + 0xb0]
test eax, eax
jne 0x40e52f
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xe8]
push eax
push ecx
mov ecx, edi
call fcn.00410670
mov ecx, edi
call fcn.004106b0
test eax, eax
mov dword [esp + 0x28], eax
je 0x40e45e
push 0x60
call fcn.0043878d
add esp, 4
test eax, eax
je 0x40e459
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esi]
push ecx
push edx
mov ecx, eax
call fcn.00408b60
jmp 0x40e45b
xor eax, eax
mov dword [esi + 0x10], eax
cmp dword [esp + 0xe8], 8
jne 0x40e47b
push 0
lea eax, [esp + 0xec]
push eax
mov ecx, esi
call fcn.0040de90
jmp 0x40e4a6
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x40e495
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0xd
je 0x40e495
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x20]
jmp 0x40e498
or eax, 0xffffffff
push str.Missing_or_bad_Type3_CharProc_entry
push eax
call fcn.00405840
add esp, 8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 0xb4]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40e523
mov ebx, dword [esi + 0x10]
test ebx, ebx
mov eax, dword [ebx + 0x58]
mov dword [esp + 0x28], eax
je 0x40e518
mov ecx, dword [ebx]
test ecx, ecx
mov dword [esp + 0x58], ecx
je 0x40e4e7
call fcn.00410900
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00438788
add esp, 4
lea ecx, [ebx + 8]
call fcn.0042aad0
lea ecx, [ebx + 0x18]
call fcn.0042aad0
lea ecx, [ebx + 0x28]
call fcn.0042aad0
lea ecx, [ebx + 0x38]
call fcn.0042aad0
lea ecx, [ebx + 0x48]
call fcn.0042aad0
push ebx
call fcn.00438788
add esp, 4
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0x10], edx
lea ecx, [esp + 0xe8]
call fcn.0042aad0
mov ecx, dword [esi + 0x18]
call fcn.00418e60
mov ecx, dword [esi + 4]
mov dword [esi + 0x18], eax
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
fld qword [esp + 0x40]
fadd qword [esp + 0x60]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x31c]
sub esp, 0x10
fstp qword [esp + 0x70]
fld qword [esp + 0x48]
fadd qword [esp + 0x78]
fstp qword [esp + 0x78]
fld qword [esp + 0x78]
fstp qword [eax + 0x328]
fld qword [esp + 0x70]
fstp qword [eax + 0x320]
fld qword [esp + 0x78]
fstp qword [esp + 8]
fld qword [esp + 0x70]
fstp qword [esp]
call fcn.004165c0
mov eax, dword [esi + 0x18]
fld qword [esp + 0x120]
mov edx, dword [esp + 0xc]
fstp qword [eax + 0x330]
fld qword [esp + 0x118]
fstp qword [eax + 0x338]
mov eax, dword [esp + 0x84]
sub ebx, eax
add edx, eax
test ebx, ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ebx
jg 0x40e265
mov eax, dword [esp + 0x80]
mov dword [esi + 0x5c], eax
jmp 0x40e9a4
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x40e814
mov eax, dword [esi + 0x18]
fld qword [eax + 0x310]
fld st(0)
fmul qword [eax + 0x2d0]
fld qword [eax + 0x2c0]
fmul qword [0x449118]
faddp st(1)
fstp qword [esp + 0x78]
fmul qword [eax + 0x2d8]
fld qword [eax + 0x2c8]
mov eax, dword [ebx + 4]
fmul qword [0x449118]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
test eax, eax
faddp st(1)
mov dword [esp + 0x1c], eax
fstp qword [esp + 0x70]
jle 0x40e9a7
jmp 0x40e640
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x44]
push ecx
push 8
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push eax
mov eax, dword [esp + 0x30]
push eax
mov ecx, edi
call dword [edx + 0xc]
fld qword [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x58]
test eax, eax
mov eax, dword [esi + 0x18]
fmul qword [eax + 0x2b8]
je 0x40e6be
cmp ebx, 1
fstp qword [esp + 0x10]
fld qword [esp + 0x20]
fmul qword [eax + 0x2b8]
fadd qword [eax + 0x2f0]
fstp qword [esp + 0x20]
jne 0x40e700
mov ecx, dword [esp + 0xc]
cmp byte [ecx], 0x20
jne 0x40e700
fld qword [esp + 0x20]
fadd qword [eax + 0x2f8]
jmp 0x40e6fc
cmp ebx, 1
fadd qword [eax + 0x2f0]
fstp qword [esp + 0x10]
jne 0x40e6e4
mov edx, dword [esp + 0xc]
cmp byte [edx], 0x20
jne 0x40e6e4
fld qword [esp + 0x10]
fadd qword [eax + 0x2f8]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fmul qword [eax + 0x300]
fstp qword [esp + 0x10]
fld qword [esp + 0x20]
fmul qword [eax + 0x2b8]
fstp qword [esp + 0x20]
fld qword [esp + 0x10]
mov ecx, dword [esi + 4]
fmul qword [eax + 0x2c0]
fld qword [esp + 0x20]
fmul qword [eax + 0x2d0]
faddp st(1)
fstp qword [esp + 0x40]
fld qword [esp + 0x10]
fmul qword [eax + 0x2c8]
fld qword [esp + 0x20]
fmul qword [eax + 0x2d8]
faddp st(1)
fstp qword [esp + 0x38]
fld qword [esp + 0x48]
fmul qword [eax + 0x2b8]
fstp qword [esp + 0x48]
fld qword [esp + 0x50]
fmul qword [eax + 0x2b8]
fstp qword [esp + 0x50]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x34]
fld qword [esp + 0x48]
fmul qword [eax + 0x2c8]
push ecx
fld qword [esp + 0x54]
lea ecx, [esp + 0x12c]
fmul qword [eax + 0x2d8]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
faddp st(1)
sub esp, 0x30
mov ecx, dword [esi + 4]
fstp qword [esp + 0x28]
fld qword [esp + 0x84]
fmul qword [eax + 0x2c0]
fld qword [esp + 0x8c]
fmul qword [eax + 0x2d0]
faddp st(1)
fstp qword [esp + 0x20]
fld qword [esp + 0x74]
fstp qword [esp + 0x18]
fld qword [esp + 0x7c]
fstp qword [esp + 0x10]
fld qword [esp + 0xac]
fadd qword [eax + 0x328]
fstp qword [esp + 8]
fld qword [esp + 0xb4]
fadd qword [eax + 0x320]
fstp qword [esp]
push eax
call dword [edx + 0xa8]
fld qword [esp + 0x38]
mov ecx, dword [esi + 0x18]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x50]
fstp qword [esp]
call fcn.00417340
add dword [esp + 0xc], ebx
mov eax, dword [esp + 0x1c]
sub eax, ebx
test eax, eax
mov dword [esp + 0x1c], eax
jg 0x40e63c
jmp 0x40e9a4
fld qword [0x449118]
mov edx, dword [ebx + 4]
mov ebx, dword [ebx]
fstp qword [esp + 0x20]
fld qword [0x449118]
xor eax, eax
cmp ebx, eax
fstp qword [esp + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
jle 0x40e8cb
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x114]
push edx
lea ecx, [esp + 0x44]
push ecx
push 8
lea edx, [esp + 0x140]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push ecx
push ebx
push edx
mov ecx, edi
call dword [eax + 0xc]
fld qword [esp + 0x108]
cmp eax, 1
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fld qword [esp + 0x110]
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
jne 0x40e8ae
mov ecx, dword [esp + 0xc]
cmp byte [ecx], 0x20
jne 0x40e8ae
inc dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
inc ecx
add edx, eax
sub ebx, eax
test ebx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], edx
jg 0x40e843
mov eax, dword [esp + 0x58]
test eax, eax
mov eax, dword [esi + 0x18]
je 0x40e908
fld qword [esp + 0x10]
fmul qword [eax + 0x2b8]
fstp qword [esp + 0x10]
fild dword [esp + 0x1c]
fmul qword [eax + 0x2f8]
fild dword [esp + 0x28]
fmul qword [eax + 0x2f0]
faddp st(1)
fld qword [esp + 0x20]
fmul qword [eax + 0x2b8]
faddp st(1)
jmp 0x40e942
fild dword [esp + 0x1c]
fmul qword [eax + 0x2f8]
fild dword [esp + 0x28]
fmul qword [eax + 0x2f0]
faddp st(1)
fld qword [esp + 0x10]
fmul qword [eax + 0x2b8]
faddp st(1)
fst qword [esp + 0x10]
fmul qword [eax + 0x300]
fstp qword [esp + 0x10]
fld qword [esp + 0x20]
fmul qword [eax + 0x2b8]
fstp qword [esp + 0x20]
mov edi, dword [ebp + 8]
fld qword [esp + 0x10]
mov ecx, dword [esi + 4]
fmul qword [eax + 0x2c0]
mov edx, dword [ecx]
fld qword [esp + 0x20]
push edi
fmul qword [eax + 0x2d0]
push eax
faddp st(1)
fstp qword [esp + 0x48]
fld qword [esp + 0x18]
fmul qword [eax + 0x2c8]
fld qword [esp + 0x28]
fmul qword [eax + 0x2d8]
faddp st(1)
fstp qword [esp + 0x40]
call dword [edx + 0xac]
fld qword [esp + 0x38]
mov ecx, dword [esi + 0x18]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x50]
fstp qword [esp]
call fcn.00417340
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40e9c2
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x18]
mov edx, dword [ecx]
push eax
call dword [edx + 0xa4]
mov ebx, dword [ebx]
mov eax, dword [esi + 0x14]
lea ecx, [ebx + ebx*4]
shl ecx, 1
add eax, ecx
pop edi
mov dword [esi + 0x14], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4