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

Disassembly:
push 0xffffffffffffffff
push 0x54bee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x198]
mov ecx, dword [esi + 0xdc]
push eax
call fcn.0050bec0
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x78]
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0x8c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x88], ecx
mov ecx, dword [esi + 0x1b8]
mov dword [esp + 0x64], edx
mov edx, dword [esi + 0x84]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x88]
test ecx, ecx
mov dword [esp + 0x50], 0x3e570a3d
mov dword [esp + 0x54], 0x3e3851ec
mov dword [esp + 0x58], 0x3c75c28f
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x70], 0x3f666666
mov dword [esp + 0x74], 0x3f4ccccd
mov dword [esp + 0x78], 0x3f19999a
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
je 0x508981
mov edx, dword [esi + 0x198]
push edx
call fcn.0050bec0
mov dword [esp + 0x28], eax
jmp 0x508989
mov dword [esp + 0x28], 0
mov eax, dword [esi + 0x150]
mov ecx, eax
mov edx, eax
mov dword [esp + 0x7c], ecx
mov ecx, esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x8c], eax
call fcn.005094f0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1ac]
test eax, eax
je 0x5089c8
mov eax, dword [eax + 0x1b0]
inc eax
mov dword [esp + 0x10], eax
jmp 0x5089d4
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x1c0]
jg 0x508c49
jmp 0x5089e6
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1bc]
mov dword [esp + 0x18], 0
mov ebx, dword [ecx + eax*4 - 4]
mov ecx, dword [esi + 0x1a8]
cmp eax, ecx
jne 0x508a10
lea edx, [esp + 0x50]
lea edi, [esp + 0x70]
mov dword [esp + 0x20], edx
jmp 0x508a1f
lea eax, [esp + 0x60]
lea edi, [esp + 0x80]
mov dword [esp + 0x20], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x10]
test eax, eax
je 0x508a3e
mov ebp, dword [esi + 0x1b8]
test ebp, ebp
je 0x508a3e
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
jmp 0x508a4c
mov ecx, dword [esp + 0x34]
mov ebp, dword [esi + 0xdc]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x4c], esp
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax], edx
mov edx, dword [edi + 8]
mov dword [eax + 0xc], ecx
mov ecx, ebp
mov dword [eax + 8], edx
call fcn.0050b5c0
mov ecx, dword [esi + 0x1cc]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x30], eax
jl 0x508bcc
fild dword [esp + 0x14]
mov dword [esp + 0x1c], 0x10
fstp dword [esp + 0x38]
fild dword [esp + 0x24]
fstp dword [esp + 0x3c]
mov edx, dword [esi + 0x1c8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
fild dword [eax + edx - 8]
fild dword [esp + 0x18]
lea edi, [eax + edx - 0x10]
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx]
mov dword [esp + 0x44], ecx
fstp dword [esp + 0x40]
mov dword [esp + 0x4c], edx
fstp dword [esp + 0x48]
mov ecx, dword [edi + 4]
push ecx
mov ecx, ebx
call dword [eax]
sub eax, 0
je 0x508b0b
dec eax
jne 0x508b9d
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1a8]
mov edx, dword [ebx]
cmp eax, ecx
sete cl
push ebp
push ecx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x48]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0xc]
jmp 0x508b9d
mov edx, dword [esi + 0x150]
mov eax, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.004f1e30
mov eax, dword [edi + 4]
mov edx, dword [ebx]
add esp, 0xc
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [eax]
mov dword [esp + 0x98], 0
test eax, eax
je 0x508b49
mov eax, dword [eax]
jmp 0x508b4e
mov eax, dword [0x582da8]
fld dword [esp + 0x44]
fdiv dword [esi + 0x28]
mov edx, dword [esi + 0x198]
mov ecx, ebp
push edx
push 0xffffffffffffffff
push eax
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x54]
fdiv dword [esi + 0x24]
fadd dword [0x54e504]
fstp dword [esp]
call fcn.0050b630
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x98], 0xffffffff
test ecx, ecx
je 0x508b9d
call fcn.0047edc0
mov dword [esp + 0x2c], 0
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x1cc]
inc eax
add edx, 0x10
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], edx
jle 0x508aa1
fild dword [esp + 0x18]
fst dword [esp + 0x1c]
fcomp dword [esi + 0x1c]
fnstsw ax
test ah, 5
jp 0x508c14
mov ecx, dword [esi + 0x150]
mov edx, dword [esp + 0x20]
fild dword [esp + 0x34]
push ecx
push edx
sub esp, 0xc
mov eax, dword [esp + 0x30]
fstp dword [esp + 8]
fld dword [esi + 0x1c]
fsub dword [esp + 0x30]
fstp dword [esp + 4]
fild dword [esp + 0x28]
fstp dword [esp]
push eax
call fcn.004f1e90
add esp, 0x18
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fcomp dword [esi + 0x20]
fnstsw ax
and eax, 0x4100
je 0x508c49
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c0]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x5089e2
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret
push esi
mov esi, ecx
mov eax, dword [esi + 0x1d4]
test eax, eax
je 0x508c82
call fcn.005086b0
mov ecx, esi
pop esi
jmp 0x5088b0