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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51b22c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a4
mov eax, dword [ebp + 8]
push ebx
push esi
add eax, 8
push edi
push eax
lea ecx, [esp + 0xc4]
call fcn.00491bb0
mov ecx, dword [ebp + 0xc]
xor edi, edi
add ecx, 8
mov dword [esp + 0x3b8], edi
push ecx
lea ecx, [esp + 0x17c]
call fcn.00491bb0
lea ecx, [esp + 0x80]
mov byte [esp + 0x3b8], 1
call fcn.004b7e80
lea ecx, [esp + 0x230]
mov byte [esp + 0x3b8], 2
call fcn.004d22b0
mov esi, 0x522d70
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x3b8], 4
call fcn.004d5600
lea edx, [esp + 0x80]
lea ecx, [esp + 0xc0]
push edx
push edi
mov byte [esp + 0x3c0], 5
call fcn.00498340
lea eax, [esp + 0xc0]
lea ecx, [esp + 0x2c0]
push eax
call fcn.004d58b0
lea ecx, [esp + 0x108]
push ecx
lea ecx, [esp + 0x48]
call fcn.0047dc60
lea ecx, [esp + 0x178]
mov byte [esp + 0x3b8], 6
call fcn.00491d90
fstp qword [esp + 0x14]
lea ecx, [esp + 0xc0]
call fcn.00491d90
fadd qword [esp + 0x14]
lea ecx, [esp + 0x44]
fstp qword [0x598f78]
call fcn.0047e1c0
fstp qword [0x598f70]
lea edx, [esp + 0x108]
mov ecx, 0x598e88
push edx
call fcn.0047dd40
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x160]
mov dword [0x598f60], eax
mov eax, dword [esp + 0x164]
mov dword [0x598f64], ecx
lea ecx, [esp + 0xc0]
mov dword [0x598f68], edx
mov dword [0x598f6c], eax
call fcn.00491d90
fmul qword [0x598f60]
lea ecx, [esp + 0xc0]
fstp qword [0x598f60]
call fcn.00491d90
fmul qword [0x598f68]
fstp qword [0x598f68]
lea ecx, [esp + 0x80]
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.004c18c0
fld qword [esp + 0x4c]
fsub qword [0x520870]
sub esp, 0x18
lea eax, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
fstp qword [esp + 0x68]
fld qword [esp + 0x70]
fsub qword [0x520870]
fstp qword [esp + 0x70]
fld qword [esp + 0x78]
fadd qword [0x520870]
fstp qword [esp + 0x78]
fld qword [esp + 0x80]
fadd qword [0x520870]
fstp qword [esp + 0x80]
call fcn.0047dc60
lea ecx, [esp + 0x198]
lea edx, [esp + 0xa0]
push ecx
push edx
lea ecx, [esp + 0x258]
call fcn.004d23d0
push 0x4d4ab0
push edi
push 0x4c3830
push edi
push edi
push 0x3ff00000
lea eax, [esp + 0x2d8]
push edi
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x198]
push ecx
push edx
lea ecx, [esp + 0x258]
call fcn.004d5050
test al, al
je 0x4c7b3e
lea eax, [esp + 0x80]
lea ecx, [esp + 0x178]
push eax
push edi
call fcn.00498340
lea ecx, [esp + 0x178]
mov dword [esp + 0x14], edi
push ecx
lea ecx, [esp + 0x2c4]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.004d58b0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], edi
cmp eax, edi
jle 0x4c7a41
mov edx, dword [esp + 0x24]
mov ebx, dword [ebp + 0x18]
fld qword [esp + 0x14]
fld qword [esp + 0x34]
lea esi, [edx + 0x20]
mov dword [esp + 0x3c], esi
fld qword [esi]
fsub st(1)
sub esp, 8
lea ecx, [esp + 0x180]
sub esp, 8
fstp qword [esp + 8]
fstp st(0)
fld qword [esi - 8]
fsub st(1)
fstp qword [esp]
fstp st(0)
call fcn.00491ea0
lea eax, [esp + 0x108]
lea ecx, [esp + 0x80]
push eax
call fcn.0047dd40
lea ecx, [esp + 0x178]
call fcn.00491d90
fstp qword [esp + 0x14]
lea ecx, [esp + 0xc0]
call fcn.00491d90
mov ecx, dword [esp + 0x158]
mov edx, dword [esp + 0x15c]
fadd qword [esp + 0x14]
mov eax, dword [esp + 0x160]
mov dword [0x598f60], ecx
mov ecx, dword [esp + 0x164]
mov dword [0x598f64], edx
mov dword [0x598f6c], ecx
lea ecx, [esp + 0xc0]
fstp qword [esp + 0x74]
mov dword [0x598f68], eax
call fcn.00491d90
fmul qword [0x598f60]
lea ecx, [esp + 0xc0]
fstp qword [0x598f60]
call fcn.00491d90
fmul qword [0x598f68]
lea ecx, [esp + 0x178]
fstp qword [0x598f68]
call fcn.00491d90
fmul qword [esp + 0x210]
lea ecx, [esp + 0x178]
fadd qword [0x598f60]
fstp qword [0x598f60]
call fcn.00491d90
fmul qword [esp + 0x218]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x40], edi
cmp eax, edi
fadd qword [0x598f68]
fstp qword [0x598f68]
jle 0x4c7a17
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x34], edi
mov eax, dword [edi]
lea ecx, [eax + 8]
call fcn.00491d90
fadd qword [esp + 0x74]
lea edx, [esp + 0x64]
lea ecx, [esp + 0x2c0]
push edx
lea edx, [esp + 0x84]
fstp qword [0x598f78]
mov eax, dword [edi]
push eax
push ecx
push edx
call fcn.004c7c00
add esp, 0x10
test al, al
je 0x4c79f6
push 0xc0
call fcn.0050b264
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x3b8], 7
je 0x4c791e
mov ecx, eax
call fcn.004c1630
mov esi, eax
jmp 0x4c7920
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov edx, dword [edi]
lea eax, [esi + 0x90]
mov dword [esi + 0x24], edx
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov edx, dword [esp + 0x68]
mov byte [esp + 0x3b8], 6
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x210]
lea eax, [esi + 0x80]
mov dword [esi + 0x80], ecx
mov edx, dword [esp + 0x214]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x218]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x21c]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x158]
lea eax, [esi + 0x70]
mov dword [esi + 0x70], ecx
mov edx, dword [esp + 0x15c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x160]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x164]
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.004c6390
cmp eax, 1
jne 0x4c79ea
mov edi, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
lea eax, [edi + 1]
push eax
call fcn.004de680
mov ecx, dword [ebx + 4]
mov dword [ecx + edi*4], esi
mov eax, dword [ebx + 8]
cmp eax, 4
jg 0x4c7af8
mov edi, dword [esp + 0x34]
jmp 0x4c79f6
test esi, esi
je 0x4c79f6
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x14]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], edi
jl 0x4c78ba
mov esi, dword [esp + 0x3c]
xor edi, edi
fld qword [esi - 8]
fld qword [esi]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
add esi, 0x40
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x10], eax
jl 0x4c77a5
fstp st(0)
fstp st(0)
mov esi, 0x522d70
lea ecx, [esp + 0x44]
mov byte [esp + 0x3b8], 5
call fcn.00507a00
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x3b8], 4
call fcn.004d5690
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3b8], 9
cmp eax, edi
je 0x4c7a83
push eax
call fcn.0050b204
add esp, 4
lea ecx, [esp + 0x230]
mov dword [esp + 0x20], 0x520384
mov byte [esp + 0x3b8], 2
call fcn.004d2340
lea ecx, [esp + 0x80]
mov byte [esp + 0x3b8], 1
call fcn.004b7420
lea ecx, [esp + 0x178]
mov byte [esp + 0x3b8], 0
call fcn.00491c60
lea ecx, [esp + 0xc0]
mov dword [esp + 0x3b8], 0xffffffff
call fcn.00491c60
mov eax, 1
mov ecx, dword [esp + 0x3b0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x44]
mov byte [esp + 0x3b8], 5
call fcn.00507a00
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x3b8], 4
call fcn.004d5690
mov dword [esp + 0x20], 0x522d70
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3b8], 8
test eax, eax
je 0x4c7a83
jmp 0x4c7a7a
lea ecx, [esp + 0x44]
mov byte [esp + 0x3b8], 5
call fcn.00507a00
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x3b8], 4
call fcn.004d5690
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3b8], 0xa
cmp eax, edi
je 0x4c7b80
push eax
call fcn.0050b204
add esp, 4
lea ecx, [esp + 0x230]
mov dword [esp + 0x20], 0x520384
mov byte [esp + 0x3b8], 2
call fcn.004d2340
lea ecx, [esp + 0x80]
mov byte [esp + 0x3b8], 1
call fcn.004b7420
lea ecx, [esp + 0x178]
mov byte [esp + 0x3b8], 0
call fcn.00491c60
lea ecx, [esp + 0xc0]
mov dword [esp + 0x3b8], 0xffffffff
call fcn.00491c60
mov ecx, dword [esp + 0x3b0]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret