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

Disassembly:
jmp 0x4022e0
mov eax, 0x1540
call fcn.00416a60
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 8]
mov eax, ecx
test eax, eax
mov dword [esp + 0x20], edi
mov dword [edi + 0x10], ecx
je 0x40232b
mov ecx, dword [eax]
test ecx, ecx
je 0x40232b
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
test eax, eax
mov dword [edi + 0x10], eax
je 0x402325
mov ecx, dword [eax]
test ecx, ecx
je 0x40232b
jmp 0x40230c
mov ecx, dword [edi + 8]
mov dword [edi + 0x10], ecx
mov eax, dword [edi]
mov esi, dword [eax]
mov edx, dword [esi + 0x10]
mov dword [esp + 0x4c], edx
lea edx, [eax + 4]
mov ebx, dword [edx]
lea ecx, [eax + 0x68]
mov eax, esi
mov eax, dword [eax + 0x10]
add eax, 0x124
mov dword [esp + 0x10], ebx
fld dword [esp + 0x10]
fadd dword [eax]
mov ebx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x14], ebx
fstp dword [esp + 0x24]
fld dword [esp + 0x14]
mov dword [esp + 0x18], edx
fadd dword [eax + 4]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x48], ecx
fstp dword [esp + 0x34]
fld dword [esp + 0x24]
fadd dword [eax + 8]
mov eax, dword [esp + 0x30]
mov dword [edx], eax
mov eax, dword [esp + 0x34]
mov dword [edx + 4], eax
fstp dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov dword [edx + 8], eax
lea edx, [esp + 0x5c]
push edx
call fcn.004012cb
mov ecx, dword [eax]
mov dword [esp + 0x68], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x6c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x70], eax
mov ecx, dword [esi + 0x24]
xor ebp, ebp
mov eax, ecx
test eax, eax
mov dword [esp + 0x34], ebp
mov dword [esi + 0x2c], ecx
je 0x4023cb
mov eax, dword [eax]
jmp 0x4023cd
xor eax, eax
lea ebx, [esp + 0x1410]
test eax, eax
jne 0x4023dd
cmp ebp, 0x14
jl 0x402438
mov edx, dword [eax + 0xc]
mov dword [ebx + 0xc], edx
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [edi]
add ecx, 0x68
call fcn.004012cb
mov ecx, dword [eax]
mov edx, ebx
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 8]
inc ebp
add ebx, 0x10
test eax, eax
mov dword [esi + 0x2c], eax
je 0x40242e
mov eax, dword [eax]
jmp 0x4023d4
mov edx, dword [esi + 0x24]
mov dword [esi + 0x2c], edx
xor eax, eax
jmp 0x4023d4
mov ecx, dword [edi + 0x24]
test ecx, ecx
mov eax, dword [edi + 0x28]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ecx
je case.0x40266f.3
lea ebp, [eax + 0xc]
mov dword [esp + 0x1c], ebp
jmp 0x402467
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
mov ebx, dword [edi + 0x20]
mov eax, dword [eax]
lea eax, [eax + eax*8]
lea eax, [ebx + eax*4]
mov esi, eax
mov ecx, 9
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
lea ecx, [ecx + ecx*8]
lea edx, [ebx + ecx*4]
mov esi, edx
mov ecx, 9
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
lea ecx, [ecx + ecx*8]
lea ebx, [ebx + ecx*4]
mov ecx, 9
mov esi, ebx
lea edi, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx]
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + 4]
fld dword [esp + 0x24]
mov edx, dword [edx + 8]
fadd dword [eax]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 4]
fld dword [esp + 0x28]
mov dword [esp + 0x2c], edx
fadd dword [eax + 4]
mov edx, dword [ebx + 8]
mov dword [esp + 0x44], ecx
fstp dword [esp + 0x60]
mov dword [esp + 0x48], edx
fld dword [esp + 0x2c]
fadd dword [eax + 8]
mov eax, dword [ebx]
mov dword [esp + 0x40], eax
mov al, byte [0x42a4c4]
test al, 1
fstp dword [esp + 0x64]
fadd dword [esp + 0x40]
fld dword [esp + 0x60]
fadd dword [esp + 0x44]
fstp dword [esp + 0x54]
fld dword [esp + 0x64]
fadd dword [esp + 0x48]
fstp dword [esp + 0x58]
fmul dword [0x426080]
fstp dword [esp + 0x10]
fld dword [esp + 0x54]
fmul dword [0x426080]
fstp dword [esp + 0x14]
fld dword [esp + 0x58]
fmul dword [0x426080]
fstp dword [esp + 0x18]
jne 0x402574
push 0x401343
push 0x18
push 0x24
or al, 1
push 0x42a8c8
mov byte [0x42a4c4], al
call fcn.004012da
push 0x403520
mov dword [0x42a8a0], 0x42606c
call fcn.00416a17
add esp, 4
mov al, byte [0x42a4c4]
test al, 2
jne 0x4025ae
push 0x401343
push 0x18
push 0x24
or al, 2
push 0x429d40
mov byte [0x42a4c4], al
call fcn.004012da
push 0x403500
mov dword [0x429d18], 0x426058
call fcn.00416a17
add esp, 4
mov al, byte [0x42a4c4]
test al, 4
jne 0x4025e8
push 0x401343
push 0x18
push 0x24
or al, 4
push 0x42aca0
mov byte [0x42a4c4], al
call fcn.004012da
push 0x4034e0
mov dword [0x42ac78], 0x426044
call fcn.00416a17
add esp, 4
mov al, byte [0x42a4c4]
test al, 8
jne 0x402622
push 0x401343
push 0x18
push 0x24
or al, 8
push 0x42a4f0
mov byte [0x42a4c4], al
call fcn.004012da
push 0x4034c0
mov dword [0x42a4c8], 0x426030
call fcn.00416a17
add esp, 4
mov al, byte [0x42a4c4]
test al, 0x10
jne 0x40265c
push 0x401343
push 0x18
push 0x24
or al, 0x10
push 0x42a118
mov byte [0x42a4c4], al
call fcn.004012da
push 0x4034a0
mov dword [0x42a0f0], 0x42601c
call fcn.00416a17
add esp, 4
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 4]
mov eax, dword [esi]
dec eax
cmp eax, 5
ja case.0x40266f.3
jmp dword [eax*4 + 0x402a5c]
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
lea ecx, [esp + 0xec]
call fcn.0040103c
lea ecx, [esp + 0x80]
mov dword [esp + 0xf0], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0xf4], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xf8], ebp
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0xec]
mov dword [esp + 0x108], ecx
push edx
mov ecx, 0x42a8a0
mov dword [esp + 0xf0], 0x42606c
mov dword [esp + 0x4c0], 0
mov dword [esp + 0x110], esi
mov dword [esp + 0x100], edi
mov dword [esp + 0x104], ebp
mov dword [esp + 0x108], ebx
mov dword [esp + 0x114], 1
call fcn.00401104
mov eax, dword [esp + 0x4bc]
mov dword [0x42ac70], eax
mov esi, 0x42a8a0
jmp 0x4029a7
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
lea ecx, [esp + 0x894]
call fcn.0040103c
lea ecx, [esp + 0x80]
mov dword [esp + 0x898], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x89c], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x8a0], ebp
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x894]
mov dword [esp + 0x8b0], ecx
push edx
mov ecx, 0x42ac78
mov dword [esp + 0x898], 0x426044
mov dword [esp + 0xc68], 0
mov dword [esp + 0x8b8], esi
mov dword [esp + 0x8a8], edi
mov dword [esp + 0x8ac], ebp
mov dword [esp + 0x8b0], ebx
mov dword [esp + 0x8bc], 1
call fcn.00401104
mov eax, dword [esp + 0xc64]
mov dword [0x42b048], eax
mov esi, 0x42ac78
jmp 0x4029a7
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
lea ecx, [esp + 0x103c]
call fcn.0040103c
lea ecx, [esp + 0x80]
mov dword [esp + 0x1040], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1044], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1048], ebp
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x103c]
mov dword [esp + 0x1058], ecx
push edx
mov ecx, 0x42a4c8
mov dword [esp + 0x1040], 0x426030
mov dword [esp + 0x1410], 0
mov dword [esp + 0x1060], esi
mov dword [esp + 0x1050], edi
mov dword [esp + 0x1054], ebp
mov dword [esp + 0x1058], ebx
mov dword [esp + 0x1064], 1
call fcn.00401258
mov esi, 0x42a4c8
jmp 0x4029a7
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
lea ecx, [esp + 0x4c0]
call fcn.0040103c
lea ecx, [esp + 0x4c0]
mov dword [esp + 0x4c4], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x4c8], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x4cc], ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x80]
push ecx
mov ecx, 0x429d18
mov dword [esp + 0x4c4], 0x426058
mov dword [esp + 0x894], 0
mov dword [esp + 0x4e0], eax
mov dword [esp + 0x4e4], esi
mov dword [esp + 0x4d4], edi
mov dword [esp + 0x4d8], ebp
mov dword [esp + 0x4dc], ebx
mov dword [esp + 0x4e8], 1
call fcn.00401104
mov edx, dword [esp + 0x890]
mov dword [0x42a0e8], edx
mov esi, 0x429d18
jmp 0x4029a7
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
lea ecx, [esp + 0xc68]
call fcn.0040103c
lea ecx, [esp + 0xc68]
mov dword [esp + 0xc6c], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc70], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xc74], ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x80]
push ecx
mov ecx, 0x42a0f0
mov dword [esp + 0xc6c], 0x42601c
mov dword [esp + 0x103c], 0
mov dword [esp + 0xc88], eax
mov dword [esp + 0xc8c], esi
mov dword [esp + 0xc7c], edi
mov dword [esp + 0xc80], ebp
mov dword [esp + 0xc84], ebx
mov dword [esp + 0xc90], 1
call fcn.00401258
mov esi, 0x42a0f0
sub esp, 0xc
mov edx, esp
mov dword [edx], edi
lea eax, [esp + 0x80]
mov dword [edx + 4], ebp
push eax
lea ecx, [esp + 0x78]
mov dword [edx + 8], ebx
call fcn.00401325
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov cl, byte [edx + 4]
test cl, cl
jne 0x4029f2
mov edi, dword [eax]
mov edx, dword [esi]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov ecx, esi
call dword [edx]
test al, al
jne 0x402a27
mov eax, dword [esp + 0x3c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
mov ebx, dword [esp + 0x34]
test ebx, ebx
jle 0x402a1b
lea edi, [esp + 0x1410]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 4]
add edi, 0x10
dec ebx
jne 0x402a0d
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov eax, 0x18
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], eax
jne 0x40245b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1540
ret