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

Disassembly:
jmp 0x4e6300
sub esp, 0x34c
push ebx
push ebp
push esi
mov eax, 0xa
or esi, 0xffffffff
push edi
mov dword [esp + 0x2cc], eax
mov dword [esp + 0x2d0], 0x42800000
mov dword [esp + 0x2d4], 0x42800000
mov dword [esp + 0x2d8], 0
mov dword [esp + 0x2dc], 0
mov dword [esp + 0x2e0], 0
mov dword [esp + 0x2e4], 0
mov dword [esp + 0x2e8], 0x41800000
mov dword [esp + 0x2ec], esi
mov dword [esp + 0x2f0], 0
mov dword [esp + 0x2f4], 0x41800000
mov dword [esp + 0x2f8], 0
mov dword [esp + 0x2fc], 0
mov dword [esp + 0x300], 0x42000000
mov dword [esp + 0x304], esi
mov dword [esp + 0x308], 0x42800000
mov dword [esp + 0x30c], 0
mov dword [esp + 0x310], 0
mov dword [esp + 0x314], 0x42800000
mov dword [esp + 0x318], 0x41800000
mov dword [esp + 0x31c], esi
mov dword [esp + 0x320], 0x42800000
mov dword [esp + 0x324], 0x41800000
mov dword [esp + 0x328], 0
mov dword [esp + 0x32c], 0x42800000
mov dword [esp + 0x330], 0x42000000
mov dword [esp + 0x334], esi
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], 0x42800000
mov dword [esp + 0x124], 0x42800000
mov dword [esp + 0x128], 0x42a00000
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0x42000000
mov dword [esp + 0x13c], esi
mov dword [esp + 0x140], 0x42a00000
mov dword [esp + 0x144], 0x41800000
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0x42400000
mov dword [esp + 0x154], esi
mov dword [esp + 0x158], 0x42c00000
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0x41800000
mov dword [esp + 0x168], 0x42000000
mov dword [esp + 0x16c], esi
mov dword [esp + 0x170], 0x42c00000
mov dword [esp + 0x174], 0x41800000
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0x41800000
mov dword [esp + 0x180], 0x42400000
mov dword [esp + 0x184], esi
mov dword [esp + 0x260], eax
mov dword [esp + 0x264], 0x42800000
mov dword [esp + 0x268], 0x42800000
mov dword [esp + 0x26c], 0x42a00000
mov dword [esp + 0x270], 0
mov dword [esp + 0x274], 0
mov dword [esp + 0x278], 0x41800000
mov dword [esp + 0x27c], 0x42000000
mov dword [esp + 0x280], esi
mov dword [esp + 0x284], 0x42a00000
mov dword [esp + 0x288], 0x41800000
mov dword [esp + 0x28c], 0
mov dword [esp + 0x290], 0x41800000
mov dword [esp + 0x294], 0x42400000
mov dword [esp + 0x298], esi
mov dword [esp + 0x29c], 0x42c00000
mov dword [esp + 0x2a0], 0
mov dword [esp + 0x2a4], 0
mov dword [esp + 0x2a8], 0x42000000
mov dword [esp + 0x2ac], 0x42000000
mov dword [esp + 0x2b0], esi
mov dword [esp + 0x2b4], 0x42c00000
mov dword [esp + 0x2b8], 0x41800000
mov dword [esp + 0x2bc], 0
mov dword [esp + 0x2c0], 0x42000000
mov dword [esp + 0x2c4], 0x42400000
mov dword [esp + 0x2c8], esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 0x42800000
mov dword [esp + 0xb8], 0x42800000
mov dword [esp + 0xbc], 0x42a00000
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0x42000000
mov dword [esp + 0xcc], 0x42000000
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], 0x42a00000
mov dword [esp + 0xd8], 0x41800000
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0x42000000
mov dword [esp + 0xe4], 0x42400000
mov dword [esp + 0xe8], esi
mov dword [esp + 0xec], 0x42c00000
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0x42400000
mov dword [esp + 0xfc], 0x42000000
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], 0x42c00000
mov dword [esp + 0x108], 0x41800000
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0x42400000
mov dword [esp + 0x114], 0x42400000
mov dword [esp + 0x118], esi
mov dword [esp + 0x1f4], eax
mov dword [esp + 0x1f8], 0x42800000
mov dword [esp + 0x1fc], 0x42800000
mov dword [esp + 0x200], 0x42a00000
mov dword [esp + 0x204], 0
mov dword [esp + 0x208], 0
mov dword [esp + 0x20c], 0x42400000
mov dword [esp + 0x210], 0x42000000
mov dword [esp + 0x214], esi
mov dword [esp + 0x218], 0x42a00000
mov dword [esp + 0x21c], 0x41800000
mov dword [esp + 0x220], 0
mov dword [esp + 0x224], 0x42400000
mov dword [esp + 0x228], 0x42400000
mov dword [esp + 0x22c], esi
mov dword [esp + 0x230], 0x42c00000
mov dword [esp + 0x234], 0
mov dword [esp + 0x238], 0
mov dword [esp + 0x23c], 0x42800000
mov dword [esp + 0x240], 0x42000000
mov dword [esp + 0x244], esi
mov dword [esp + 0x248], 0x42c00000
mov dword [esp + 0x24c], 0x41800000
mov dword [esp + 0x250], 0
mov dword [esp + 0x254], 0x42800000
mov dword [esp + 0x258], 0x42400000
mov dword [esp + 0x25c], esi
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], 0x42800000
mov dword [esp + 0x190], 0x42800000
mov dword [esp + 0x194], 0x42c00000
mov dword [esp + 0x198], 0
mov dword [esp + 0x19c], 0
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0x41800000
mov dword [esp + 0x1a8], esi
mov dword [esp + 0x1ac], 0x42c00000
mov dword [esp + 0x1b0], 0x41800000
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 0x42000000
mov dword [esp + 0x1c0], esi
mov dword [esp + 0x1c4], 0x42d40000
mov dword [esp + 0x1c8], 0
mov dword [esp + 0x1cc], 0
mov dword [esp + 0x1d0], 0x41200000
mov dword [esp + 0x1d4], 0x41800000
mov dword [esp + 0x1d8], esi
mov edi, dword [esp + 0x360]
mov dword [esp + 0x1dc], 0x42d40000
mov dword [esp + 0x1e0], 0x41800000
mov dword [esp + 0x1e4], 0
mov eax, dword [edi*4 + 0xd3d8e0]
mov dword [esp + 0x1e8], 0x41200000
mov dword [esp + 0x1ec], 0x42000000
mov dword [esp + 0x1f0], esi
mov dword [esp + 0x44], 9
mov dword [esp + 0x48], 0x42800000
mov dword [esp + 0x4c], 0x42800000
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x41800000
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x41800000
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], 0x42800000
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0x42800000
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], 0x42800000
mov dword [esp + 0x9c], 0x41800000
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0x42800000
mov dword [esp + 0xa8], 0x41800000
mov dword [esp + 0xac], esi
mov ecx, dword [eax + 8]
test ch, 4
jne 0x4e6aa6
push 0
push 0x400
push edi
call fcn.0040341d
add esp, 0xc
test eax, eax
je 0x4e6ad1
mov ecx, dword [edi*4 + 0xd3d8e0]
mov eax, dword [ecx + 8]
test ah, 2
jne 0x4e6e4e
push 0
push 0x200
push edi
call fcn.0040341d
add esp, 0xc
test eax, eax
jne 0x4e6e4e
call fcn.00403580
mov ecx, dword [esp + 0x364]
cmp ecx, esi
je 0x4e6e4e
mov eax, dword [0xcdc9b4]
test eax, eax
je 0x4e6afc
cmp eax, 2
je 0x4e6afc
cmp eax, 3
je 0x4e6afc
push 3
jmp 0x4e6afe
push 0
push ecx
call fcn.00403594
add esp, 8
lea eax, [esp + 0x260]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], 0x43848000
push 0x3f800000
mov edi, dword [esp + 0x18]
push esi
push 0x3f800000
push 0x3f800000
lea ecx, [esp + 0xc0]
sub esp, 0xc
mov dword [esp + 0x34], 0x433a0000
mov ebx, dword [esp + 0x34]
mov eax, esp
lea edx, [esp + 0x138]
mov dword [esp + 0x50], ecx
mov dword [eax], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], 0x38d1b717
mov ebp, dword [esp + 0x38]
mov dword [eax + 4], ebx
lea ecx, [esp + 0x2e8]
lea edx, [esp + 0x210]
push 1
push ecx
mov dword [esp + 0x5c], edx
mov dword [eax + 8], ebp
call fcn.00401db6
add esp, 0x24
mov eax, dword [esp + 0x360]
push 0x3f800000
push esi
push 0x3f800000
push 0x3f800000
sub esp, 0xc
mov ecx, dword [esp + eax*4 + 0x48]
mov edx, esp
push 1
push ecx
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], ebp
call fcn.00401db6
add esp, 0x24
lea eax, [esp + 0x188]
push 0x3f800000
push esi
push 0x3f800000
push 0x3f800000
sub esp, 0xc
mov esi, 1
mov edx, esp
push esi
push eax
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], ebp
call fcn.00401db6
mov eax, dword [0xcdc9b4]
add esp, 0x24
cmp eax, esi
je 0x4e6d85
jle 0x4e6cbb
cmp eax, 3
jg 0x4e6cbb
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x44]
xor esi, esi
mov dword [esp + 0x2c], 0x43908000
mov dword [esp + 0x38], 0x438b0000
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x718e70
mov dword [esp + 0x24], 2
mov dword [esp + 0x10], esi
lea edi, [esp + 0x2c]
mov ebx, 0x38d1b717
fild dword [esp + 0x10]
cmp esi, dword [esp + 0x364]
fmul qword [0x64ab28]
fadd qword [0x64ab18]
fstp dword [edi + 4]
mov dword [edi + 8], ebx
jne 0x4e6c69
push 0x3f800000
jmp 0x4e6c6e
push 0x3ecccccd
push 0
push 0x3f800000
push 0x3f800000
mov edx, edi
sub esp, 0xc
mov ecx, dword [edx]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + esi*4 + 0x30]
mov dword [eax + 8], edx
mov eax, dword [esp + esi*4 + 0x3c]
push eax
push ecx
call fcn.00401db6
add esp, 0x24
inc esi
add edi, 0xc
cmp esi, 2
mov dword [esp + 0x10], esi
jl 0x4e6c43
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
fild dword [esp + 0x364]
push ecx
mov dword [esp + 0x24], 0x43908000
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], 0x43630000
fmul qword [0x645038]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], 0x38d1b717
mov dword [esp + 0x30], 0x43890000
mov dword [esp + 0x34], 0x43838000
mov dword [esp + 0x38], 0x38d1b717
fst qword [esp + 0x18]
fsubr qword [0x634180]
fstp dword [esp]
push 0
push 0x3f800000
push 0x3f800000
sub esp, 0xc
mov edx, esp
push esi
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], ecx
lea ecx, [esp + 0x64]
push ecx
mov dword [edx + 8], eax
call fcn.00401db6
fld qword [esp + 0x38]
fadd qword [0x644328]
add esp, 0x20
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
fstp dword [esp]
push 0
push 0x3f800000
push 0x3f800000
sub esp, 0xc
mov edx, esp
push 2
push 0x719460
mov dword [edx], eax
mov eax, dword [esp + 0x58]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
call fcn.00401db6
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x44]
mov eax, 2
xor esi, esi
mov dword [esp + 0x338], 0x43908000
mov dword [esp + 0x344], 0x43878000
mov dword [esp + 0x350], 0x43890000
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x719388
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], 0x719460
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], esi
lea edi, [esp + 0x338]
mov ebx, 0x38d1b717
fild dword [esp + 0x10]
cmp esi, dword [esp + 0x364]
fmul qword [0x64ab28]
fadd qword [0x64ab18]
fstp dword [edi + 4]
mov dword [edi + 8], ebx
jne 0x4e6e07
push 0x3f800000
jmp 0x4e6e0c
push 0x3ecccccd
push 0
push 0x3f800000
push 0x3f800000
mov edx, edi
sub esp, 0xc
mov ecx, dword [edx]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + esi*4 + 0x30]
mov dword [eax + 8], edx
mov eax, dword [esp + esi*4 + 0x48]
push eax
push ecx
call fcn.00401db6
add esp, 0x24
inc esi
add edi, 0xc
cmp esi, 3
mov dword [esp + 0x10], esi
jl 0x4e6de1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret