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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e67cb
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push ebp
mov ebp, dword [esp + 0x164]
mov eax, dword [ebp + 0x60]
push esi
push edi
mov edi, dword [esp + 0x170]
cmp eax, edi
jbe 0x50010b
sub eax, edi
mov dword [ebp + 0x60], eax
jmp 0x500112
mov dword [ebp + 0x60], 0
mov ebx, edi
mov esi, ebp
call fcn.00500030
call fcn.004d7dd0
mov ecx, eax
xor eax, eax
call fcn.004d82e0
mov ebx, eax
lea esi, [esp + 0x90]
mov dword [esp + 0x78], ebx
call fcn.004d7a90
lea esi, [esp + 0xd4]
mov eax, ebx
call fcn.004d7b20
call fcn.0042a210
mov ecx, eax
xor eax, eax
call fcn.0042a270
mov eax, dword [eax + 0x8c]
lea ebx, [esp + 0x5c]
call fcn.004272c0
mov ecx, dword [ebp + 0x60]
test ecx, ecx
jbe 0x500184
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
jmp 0x5001e5
fld dword [esp + 0x64]
fmul dword [0x604a4c]
fld dword [esp + 0x60]
fmul dword [0x604a4c]
fstp dword [esp + 0x14]
fld dword [esp + 0x5c]
fmul dword [0x604a4c]
fstp dword [esp + 0xac]
fadd dword [esp + 0x98]
fld dword [esp + 0x94]
fadd dword [esp + 0x14]
fld dword [esp + 0x90]
fadd dword [esp + 0xac]
fstp dword [esp + 0x3c]
mov ebx, dword [esp + 0x3c]
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
fstp dword [esp + 0x44]
mov esi, dword [esp + 0x44]
mov eax, dword [ebp + 0x58]
cmp eax, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], esi
jae 0x500247
test ecx, ecx
mov dword [ebp + 0x58], 0xc8
jne 0x50024c
mov eax, dword [0x604a54]
lea ecx, [esp + 0x80]
push ecx
push ebp
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], eax
call fcn.00500a50
mov ebx, ebp
call fcn.004fffe0
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
jmp 0x50024c
sub eax, edi
mov dword [ebp + 0x58], eax
mov al, byte [ebp + 0x64]
test al, al
je 0x5008fe
mov eax, dword [ebp + 0x5c]
cmp eax, edi
jae 0x5008f9
mov eax, dword [0x604a50]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x60]
xor edi, edi
cmp eax, edi
mov dword [ebp + 0x5c], 0xc8
jbe 0x500285
mov ecx, dword [0x604a58]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xfc], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0xf8], ebx
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
lea eax, [esp + 0x3c]
push eax
mov ecx, edx
push ecx
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x170], edi
call fcn.004b4310
mov ecx, eax
call fcn.004b5260
mov eax, dword [esp + 0x40]
xor edx, edx
cmp eax, edi
mov dword [esp + 0x14], edx
jle 0x5008db
nop
mov eax, dword [esp + 0x44]
mov ebx, dword [eax + edx*4]
mov eax, ebx
mov dword [esp + 0x1c], ebx
call fcn.004c0620
xor edi, edi
test eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], edi
jbe 0x5008ca
mov ecx, dword [ebx + 0x28]
mov eax, edi
mov dword [esp + 0xb8], ecx
call fcn.004bcb80
mov esi, eax
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x20], esi
call dword [edx + 4]
cmp eax, 2
jbe 0x50032c
mov eax, 2
cmp dword [esi + 0x10], eax
jge 0x5008b5
mov esi, dword [esp + 0x1c]
push edi
push 0
lea edi, [esp + 0x140]
lea ebx, [esp + 0x64]
call fcn.004c03e0
mov eax, dword [esp + 0x10]
push eax
push 0x3f800000
lea edi, [esp + 0x128]
lea ebx, [esp + 0xa4]
call fcn.004c03e0
lea esi, [esp + 0x144]
lea eax, [esp + 0xf8]
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x5c]
call fcn.004ba940
mov esi, eax
test esi, esi
mov dword [esp + 0xa8], esi
jle 0x5008ad
fld dword [esp + 0x9c]
lea ecx, [esp + 0x68]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x68]
fld dword [esp + 0xa0]
fsub dword [esp + 0x60]
fstp dword [esp + 0x6c]
fld dword [esp + 0xa4]
fsub dword [esp + 0x64]
fstp dword [esp + 0x70]
call fcn.00560bd0
test esi, esi
mov dword [esp + 0x74], 0
jle 0x5008ad
lea ecx, [esp + 0x144]
mov dword [esp + 0x58], ecx
lea esp, [esp]
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x500409
mov eax, dword [esp + 0x78]
call fcn.004d7a70
test al, al
jne 0x500409
mov esi, 0xa
cmp dword [ebp + 0x10], esi
jge 0x50088a
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.005015e0
test eax, eax
mov dword [esp + 0x4c], eax
je 0x5008db
mov ebp, dword [eax + 0x14]
call fcn.004daf30
mov esi, eax
mov eax, dword [esi + 0x1a4]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc4]
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0x3f800000
mov edx, dword [ebp]
push eax
mov ecx, ebp
mov dword [esp + 0x58], esi
call dword [edx + 0x18]
xor ebx, ebx
xor edi, edi
jmp 0x5004a0
mov esi, dword [esp + 0x54]
lea ebx, [ebx]
cmp ebx, dword [esp + 0x18]
jge 0x5005a2
mov esi, dword [esi + edi*4 + 0xb4]
test esi, esi
je 0x500598
lea eax, [esp + 0xe0]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0x3f800000
mov edx, dword [esi]
push eax
mov ecx, esi
inc ebx
call dword [edx + 0x40]
mov edx, dword [esi]
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call dword [edx + 0x18]
fld dword [esp + 0xe8]
fsub dword [esp + 0x2c]
mov esi, dword [esi + 0x190]
fld dword [esp + 0xe4]
mov ecx, dword [esi + 0x20]
fsub dword [esp + 0x28]
mov edx, dword [esp + 0x20]
fld dword [esp + 0xe0]
mov eax, dword [ecx + 0x5c]
cmp eax, edx
fsub dword [esp + 0x24]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
jne 0x50056f
fld dword [0x606758]
fmul dword [esi + 0x18]
fcom dword [0x60675c]
fnstsw ax
test ah, 5
jp 0x50057d
fstp st(0)
fld dword [0x60675c]
jmp 0x50057d
fld dword [esp + 0xd0]
fadd dword [esp + 0x8c]
fadd dword [0x617e64]
fld st(0)
fmulp st(1)
fxch st(1)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jnp 0x500883
inc edi
cmp edi, 0x1e
jl 0x500496
fld dword [esp + 0xdc]
mov ecx, dword [esp + 0x20]
fmul dword [0x617ed0]
mov eax, dword [ecx]
fld dword [esp + 0xd8]
fmul dword [0x617ed0]
fld dword [esp + 0xd4]
fmul dword [0x617ed0]
fstp dword [esp + 0x114]
fld dword [esp + 0x38]
fadd st(2)
fstp dword [esp + 0xc0]
fld dword [esp + 0x34]
fadd st(1)
fstp dword [esp + 0x54]
fstp st(0)
fstp st(0)
fld dword [esp + 0x114]
fadd dword [esp + 0x30]
fstp dword [esp + 0xec]
call dword [eax]
fld dword [esp + 0x70]
fmul st(1)
fld dword [esp + 0x6c]
fmul st(2)
fstp dword [esp + 0x18]
fld dword [esp + 0x68]
fmul st(2)
fstp dword [esp + 0x108]
fmul dword [0x617ed0]
fstp st(1)
fld dword [esp + 0x18]
fmul dword [0x617ed0]
fld dword [esp + 0x108]
fmul dword [0x617ed0]
fstp dword [esp + 0x12c]
fld dword [esp + 0x2c]
fadd st(2)
fstp dword [esp + 0x18]
fld dword [esp + 0x28]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x12c]
fadd dword [esp + 0x24]
fld dword [0x604a54]
fmul dword [0x604a54]
fstp dword [esp + 0x50]
fsub dword [esp + 0xec]
fxch st(1)
fsub dword [esp + 0x54]
fld dword [esp + 0x18]
fsub dword [esp + 0xc0]
fld st(2)
fmul st(3)
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fcomp dword [esp + 0x50]
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 5
fstp st(0)
jp 0x500883
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x16c]
mov edi, dword [esp + 0x4c]
push ecx
push edx
call fcn.00501390
test al, al
je 0x500883
lea esi, [esp + 0x24]
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x5c]
call fcn.004bb000
fstp dword [esp + 0x50]
mov ecx, dword [esp + 0x16c]
lea eax, [esp + 0xbc]
push eax
push ecx
call fcn.00500d20
mov edx, dword [esp + 0xbc]
mov ecx, dword [ebp + 0xb4]
push edx
call fcn.004e3520
lea eax, [esp + 0x24]
mov ecx, ebp
call fcn.004ea030
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
push eax
push ecx
call fcn.004bae60
fstp dword [esp + 0x54]
mov edx, dword [esp + 0x54]
add esp, 8
push edx
mov ecx, ebp
call fcn.004ca0e0
push 0
mov al, 1
mov esi, ebp
call fcn.004ea050
mov eax, dword [ebp + 0x190]
mov byte [ebp + 0x510], 0
call fcn.004e79c0
mov eax, dword [ebp + 0x190]
push eax
lea esi, [esp + 0x28]
call fcn.004e78d0
mov edi, dword [ebp + 0x190]
lea ecx, [esp + 0x68]
call fcn.004e7980
mov eax, dword [ebp + 0x190]
mov edx, ebp
call fcn.004e79d0
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x190]
fstp dword [esp]
push eax
push esi
call fcn.004e79e0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
mov eax, dword [ecx + 0x2c]
mov esi, dword [ebp + 0x190]
push edx
push eax
call fcn.004e7a10
mov eax, dword [ebp + 0x190]
mov eax, dword [eax + 0x20]
or byte [eax + 0x40], 1
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x18]
lea edx, [ecx - 1]
mov dword [esp + 0x7c], 0
call fcn.004bcba0
push 0
push 0x3f800000
lea edi, [esp + 0x128]
lea ebx, [esp + 0xb4]
mov esi, eax
call fcn.004c03e0
fld dword [esp + 0x2c]
fsub dword [esp + 0xb4]
fld dword [esp + 0x28]
fsub dword [esp + 0xb0]
fld dword [esp + 0x24]
fsub dword [esp + 0xac]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fcomp dword [0x617df0]
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 0x41
fstp st(0)
jne 0x50085a
fld dword [0x60674c]
mov eax, dword [esp + 0x16c]
fmul dword [eax + 8]
fstp dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
mov eax, dword [ebp + 0x190]
push ecx
mov ecx, dword [eax + 0x20]
call fcn.0040fef0
mov edi, 1
mov esi, ebp
mov dword [ebp + 0xa4], 2
call fcn.004e9a00
mov ebp, dword [esp + 0x16c]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0xa8]
inc eax
add edx, 0xc
cmp eax, ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x58], edx
jl 0x5003f0
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jb 0x500304
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
inc edx
cmp edx, eax
mov dword [esp + 0x14], edx
jl 0x5002e0
mov eax, dword [esp + 0x44]
test eax, eax
mov dword [esp + 0x164], 0xffffffff
je 0x5008fe
push eax
call fcn.004452b0
add esp, 4
jmp 0x5008fe
sub eax, edi
mov dword [ebp + 0x5c], eax
xor edx, edx
mov dword [ebp + 0x44], edx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], edx
xor eax, eax
mov dword [ebp + 0x50], edx
mov dword [ebp + 0x54], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], eax
lea esp, [esp]
mov ebx, dword [ebp + 0x14]
add ebx, eax
mov al, byte [ebx + 0x1c]
test al, al
je 0x500a15
mov al, byte [ebx + 0x24]
test al, al
je 0x50093c
mov edi, dword [ebx + 0x18]
jmp 0x50093f
mov edi, dword [ebx + 0x14]
mov eax, dword [edi]
lea ecx, [esp + 0xec]
push ecx
mov ecx, edi
call dword [eax + 0x40]
push 0x40400000
push 0
lea edx, [esp + 0xf4]
push edx
call fcn.00447cd0
push eax
call fcn.00448010
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x170]
neg al
sbb al, al
inc al
add edx, ecx
test al, al
mov byte [ebx + 0x10], al
mov dword [ebx + 0xc], edx
jne 0x50098b
mov dword [ebx + 0xc], 0
push ebp
lea esi, [esp + 0x94]
call fcn.00501740
mov eax, dword [esp + 0x78]
call fcn.004d7a70
test al, al
jne 0x5009cd
mov al, byte [edi + 0x510]
test al, al
jne 0x5009cd
fld dword [edi + 0x148]
fcomp dword [0x618130]
fnstsw ax
test ah, 0x41
jne 0x5009c6
xor dl, dl
jmp 0x5009c8
mov dl, 1
call fcn.004e9420
mov eax, dword [edi + 0x184]
test eax, eax
jne 0x5009f7
mov al, byte [edi + 0x510]
test al, al
jne 0x5009f7
mov esi, dword [ebx + 4]
mov edx, dword [esp + 0x170]
push ebx
add esi, edx
push ebp
mov dword [ebx + 4], esi
call fcn.00501800
cmp dword [edi + 0x184], 1
jne 0x500a15
mov eax, dword [esp + 0x170]
push eax
lea esi, [esp + 0x4c]
mov eax, edi
mov ebx, ebp
call fcn.005016d0
mov eax, dword [esp + 0x14]
add eax, 0x28
cmp eax, 0xc8
mov dword [esp + 0x14], eax
jl 0x500920
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 8