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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x9c48d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebx + 0x24c0]
mov edx, dword [esi + 0x24]
push edi
push edx
push eax
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x338], ecx
mov dword [ebp - 0x360], 0
call fcn.004b6810
add esp, 8
lea ecx, [ebp - 0x360]
call fcn.004f5850
fld dword [ebx + 0x2470]
mov ecx, dword [ebx + 0x2468]
fstp dword [ebp - 0x340]
fld dword [ebx + 0x2474]
mov edx, dword [ebx + 0x246c]
mov esi, dword [ebp - 0x33c]
fstp dword [ebp - 0x374]
fld dword [ebx + 0x2478]
mov edi, eax
mov eax, dword [ebx + 0x2464]
fstp dword [ebp - 0x344]
fld dword [ebx + 0x247c]
mov dword [ebp - 0x35c], eax
mov dword [ebp - 0x334], ecx
fstp dword [ebp - 0x37c]
mov ecx, dword [ebp - 0x338]
lea eax, [ebx + 0x2480]
mov dword [ebp - 0x34c], edx
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x358], eax
mov eax, dword [esi + 0xc]
add esi, 0xc
add ebx, 0x24a0
mov dword [ebp - 0x350], edi
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x31c], edx
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x32c], 0
call fcn.004b3520
test eax, eax
je 0x501a73
mov esi, dword [esi]
mov eax, dword [esi]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [esi + ecx*4 + 8]
push 0
push edx
call fcn.0065e2c0
mov ecx, dword [ebp - 0x33c]
mov edi, dword [ebp - 0x350]
add ecx, 0xc
mov dword [ebp - 0x348], ecx
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov esi, edx
shl esi, 4
add esi, edx
add esp, 8
mov dword [ecx + esi*4 + 4], eax
test eax, eax
jne 0x501a6d
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 0x20]
jne 0x501476
cmp dword [edi + 0xc], 0
jne 0x501462
mov ecx, dword [edi + 0x28]
push 1
push edi
call ecx
add esp, 8
cmp eax, 0xffffffff
je 0x501454
dec dword [edi + 0x1c]
xor edx, edx
cmp eax, 0xffffffff
sete dl
mov eax, edx
test eax, eax
je 0x501476
cmp dword [edi + 0x14], 0
je 0x501a6d
cmp dword [edi + 0x18], 0xffffffff
je 0x501a6d
mov eax, dword [ebp - 0x330]
shl eax, 7
lea ecx, [ebp + eax - 0x208]
lea esi, [ebp + eax - 0x108]
mov eax, dword [ebp - 0x35c]
mov dword [ebp - 0x310], ecx
call fcn.00550ec0
mov dword [ebp - 0x354], eax
test eax, eax
jne 0x5014ba
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x30c], edx
jmp 0x5014da
mov dword [ebp - 0x318], 4
mov ebx, dword [ebp - 0x318]
mov dword [ebp - 0x30c], 2
mov edx, dword [ebp - 0x30c]
cmp ebx, 0x10
jge 0x501609
fld dword [ebp - 0x374]
fsub dword [ebp - 0x340]
fstp qword [ebp - 0x388]
fld dword [ebp - 0x37c]
fsub dword [ebp - 0x344]
fstp qword [ebp - 0x370]
fld qword [0x9ad7f0]
fild dword [ebp - 0x334]
call fcn.0065d290
fstp dword [ebp - 0x314]
fld dword [ebp - 0x314]
mov eax, 0x10
fld1
sub eax, dword [ebp - 0x318]
fsub st(1), st(0)
lea ebx, [esi + ebx*8 + 4]
mov dword [ebp - 0x318], eax
fdivrp st(1)
fstp dword [ebp - 0x320]
mov eax, dword [ebp - 0x334]
call fcn.00550ec0
mov dword [ebp - 0x324], eax
fild dword [ebp - 0x324]
test eax, eax
jns 0x501566
fadd dword [0x9ad760]
fmul qword [ebp - 0x388]
mov eax, dword [ebp - 0x334]
fmul dword [ebp - 0x320]
fadd dword [ebp - 0x340]
fstp dword [ebx - 4]
call fcn.00550ec0
mov dword [ebp - 0x324], eax
fild dword [ebp - 0x324]
test eax, eax
jns 0x50159c
fadd dword [0x9ad760]
fmul qword [ebp - 0x370]
mov eax, dword [ebp + 0x10]
add ebx, 8
dec dword [ebp - 0x318]
fmul dword [ebp - 0x320]
fadd dword [ebp - 0x344]
fstp dword [ebx - 8]
fld dword [ebx - 0xc]
fstp dword [ebp - 0x314]
fld dword [eax]
fld dword [ebp - 0x314]
fld st(0)
fmulp st(2)
fld dword [eax + 8]
fmul dword [ebx - 8]
faddp st(2)
fld dword [eax + 0x10]
faddp st(2)
fxch st(1)
fstp dword [ebx - 0xc]
fld dword [eax + 0xc]
fmul dword [ebx - 8]
fld dword [eax + 4]
fmulp st(2)
faddp st(1)
fadd dword [eax + 0x14]
fstp dword [ebx - 8]
jne 0x501545
mov edx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x354]
cmp edx, 4
jge 0x501732
mov ecx, edx
shl ecx, 5
add ecx, dword [ebp - 0x310]
mov ebx, 4
sub ebx, edx
mov dword [ebp - 0x30c], ecx
mov dword [ebp - 0x314], ebx
cmp dword [ebp - 0x31c], 0
jle 0x50171d
fld qword [0x9ad7f0]
fild dword [ebp - 0x34c]
call fcn.0065d290
fstp dword [ebp - 0x320]
fld dword [ebp - 0x320]
mov ebx, dword [ebp - 0x378]
fld1
mov eax, dword [ebp - 0x358]
fsub st(1), st(0)
mov edx, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0x31c]
sub eax, ebx
mov dword [ebp - 0x320], edx
fdivrp st(1)
mov dword [ebp - 0x364], eax
mov dword [ebp - 0x318], ecx
fstp dword [ebp - 0x324]
jmp 0x5016a6
mov eax, dword [ebp - 0x364]
fld dword [eax + ebx]
mov eax, dword [ebp - 0x34c]
fstp dword [ebp - 0x36c]
fld dword [ebx]
fstp dword [ebp - 0x368]
call fcn.00550ec0
mov dword [ebp - 0x384], eax
fild dword [ebp - 0x384]
test eax, eax
jns 0x5016d8
fadd dword [0x9ad760]
fld dword [ebp - 0x368]
mov eax, dword [ebp - 0x320]
fld dword [ebp - 0x36c]
add eax, 4
fld st(0)
add ebx, 4
dec dword [ebp - 0x318]
fsubp st(2)
fxch st(2)
mov dword [ebp - 0x320], eax
fmulp st(1)
fmul dword [ebp - 0x324]
faddp st(1)
fstp dword [eax - 4]
jne 0x5016a0
mov eax, dword [ebp - 0x354]
mov ecx, dword [ebp - 0x30c]
add ecx, 0x20
dec dword [ebp - 0x314]
mov dword [ebp - 0x30c], ecx
jne 0x501630
test eax, eax
je 0x5017e3
mov ebx, dword [ebp - 0x328]
cmp eax, 1
jne 0x50174d
test ebx, ebx
jne 0x50193a
cmp eax, 2
jne 0x50175a
test ebx, ebx
jne 0x5019a0
cmp eax, 3
jne 0x501433
mov ebx, dword [ebp - 0x328]
test ebx, ebx
je 0x501433
mov eax, dword [ebp - 0x32c]
mov ecx, dword [eax + 0x48]
mov dword [esi], ecx
mov edx, dword [eax + 0x4c]
mov dword [esi + 4], edx
mov ecx, dword [eax + 0x50]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0x54]
mov dword [esi + 0xc], edx
mov ecx, dword [eax + 0x58]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 0x5c]
mov dword [esi + 0x14], edx
mov ecx, dword [eax]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x310]
add eax, eax
add eax, eax
push eax
mov dword [ebp - 0x30c], eax
lea eax, [ebx + 0x60]
push eax
push ecx
mov dword [esi + 0x1c], edx
call fcn.0065b3c0
mov edx, dword [ebp - 0x30c]
add esp, 0xc
push edx
mov eax, dword [ebp - 0x310]
push ebx
add eax, 0x20
push eax
call fcn.0065b3c0
add esp, 0xc
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [ebp - 0x308], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x300], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x304], edx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x2fc], ecx
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x2f4], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x2f8], edx
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0x2f0], ecx
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x2d0], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x2ec], edx
mov edx, dword [esi + 0x28]
mov dword [ebp - 0x2cc], ecx
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x2ac], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x2b0], edx
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x290], ecx
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x298], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x28c], edx
mov edx, dword [esi + 0x40]
mov dword [ebp - 0x294], ecx
mov ecx, dword [esi + 0x48]
mov dword [ebp - 0x29c], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x2a0], edx
mov edx, dword [esi + 0x4c]
mov dword [ebp - 0x2a8], ecx
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0x2c8], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x2a4], edx
mov edx, dword [esi + 0x58]
mov dword [ebp - 0x2c4], ecx
mov ecx, dword [esi + 0x60]
mov dword [ebp - 0x2e4], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x2e8], edx
mov edx, dword [esi + 0x64]
mov dword [ebp - 0x2e0], ecx
mov ecx, dword [esi + 0x6c]
mov dword [ebp - 0x2d8], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x2dc], edx
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x2d4], ecx
mov ecx, dword [esi + 0x78]
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x2b8], edx
mov edx, dword [esi + 0x7c]
mov dword [ebp - 0x2c0], ecx
lea ecx, [eax*4]
mov eax, dword [ebp - 0x310]
lea ebx, [ebp - 0x288]
mov dword [ebp - 0x2bc], edx
mov edx, ebx
sub eax, edx
mov dword [ebp - 0x30c], ecx
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x314], 4
jmp 0x501a17
mov eax, dword [ebp - 0x32c]
mov edx, dword [eax + 0x18]
mov dword [esi], edx
mov ecx, dword [eax + 0x1c]
mov dword [esi + 4], ecx
mov edx, dword [eax + 0x20]
mov dword [esi + 8], edx
mov ecx, dword [eax + 0x24]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 0x28]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0x14], ecx
mov edx, dword [eax + 0x30]
mov dword [esi + 0x18], edx
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x310]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x31c]
add eax, eax
add eax, eax
push eax
lea ecx, [ebx + 0x20]
push ecx
push edx
call fcn.0065b3c0
mov eax, dword [ebp - 0x31c]
add eax, eax
add esp, 0xc
add eax, eax
push eax
add ebx, 0x40
jmp 0x5017d0
mov eax, dword [ebp - 0x32c]
mov ecx, dword [eax + 0x30]
mov dword [esi], ecx
mov edx, dword [eax + 0x34]
mov dword [esi + 4], edx
mov ecx, dword [eax + 0x38]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0x3c]
mov dword [esi + 0xc], edx
mov ecx, dword [eax + 0x40]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 0x44]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x48]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x310]
add eax, eax
add eax, eax
push eax
lea eax, [ebx + 0x40]
push eax
push ecx
mov dword [esi + 0x1c], edx
call fcn.0065b3c0
mov eax, dword [ebp - 0x31c]
mov edx, dword [ebp - 0x310]
add esp, 0xc
add eax, eax
add eax, eax
push eax
add ebx, 0x60
push ebx
add edx, 0x20
push edx
jmp 0x5017db
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp - 0x30c]
push ecx
add eax, ebx
push eax
push ebx
call fcn.0065b3c0
add esp, 0xc
add ebx, 0x20
dec dword [ebp - 0x314]
jne 0x501a11
mov eax, dword [ebp - 0x338]
push 3
push 3
lea edx, [ebp - 0x308]
push edx
push eax
call fcn.005007b0
mov ecx, dword [ebp - 0x310]
add esp, 0x10
xor dword [ebp - 0x330], 1
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x328], ecx
jmp 0x501433
mov esi, dword [ebp - 0x348]
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
add edx, ecx
cmp dword [eax + edx*4 + 4], 3
jge 0x501ade
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
add edx, ecx
inc dword [eax + edx*4 + 4]
lea eax, [eax + edx*4 + 4]
test edi, edi
je 0x501ade
dec dword [edi + 4]
jne 0x501ade
cmp dword [edi + 0x2c], 0
je 0x501ab4
mov eax, dword [edi + 0x24]
mov ecx, dword [edi]
mov edx, dword [edi + 0x2c]
push eax
push ecx
call edx
add esp, 8
mov ebx, dword [edi]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push 0
push ecx
call edx
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
push edi
push ecx
call edx
mov ebx, dword [ebx + 4]
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
push 0
push eax
call ecx
add esp, 0x18
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
add edx, ecx
mov edx, dword [eax + edx*4 + 4]
dec ecx
mov dword [eax], ecx
cmp edx, 1
jle 0x501afc
mov ecx, dword [esi]
call fcn.004b34d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0065865c
mov esp, ebp
pop ebp
ret