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

Disassembly:
push 0xffffffffffffffff
push 0x64d8e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x58]
call fcn.00519520
mov ebp, dword [esp + 0xdc]
xor eax, eax
xor esi, esi
mov dword [esp + 0xd0], esi
mov ecx, 0x100
mov edi, 0x6a8968
rep stosd dword es:[edi], eax
mov ecx, 0x100
mov edi, 0x6a8568
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
cmp byte [eax + 0x6c], 0
jne 0x511ec0
cmp dword [esp + 0x70], 0x10
jb 0x512552
mov ecx, dword [esp + 0x5c]
push ecx
jmp 0x51254a
mov edx, dword [ebp]
mov eax, dword [edx + 0x58]
mov ecx, ebp
call eax
mov eax, dword [esp + 0x6c]
xor edi, edi
cmp eax, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
jbe 0x512442
jmp 0x511eea
mov esi, dword [esp + 0x30]
cmp edi, eax
jbe 0x511ef3
call fcn.0061c63f
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x511f02
lea eax, [esp + 0x5c]
movzx ecx, byte [eax + edi]
push ecx
mov eax, ebp
call fcn.0058df00
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x6c]
lea edx, [eax - 1]
cmp edi, edx
mov byte [esp + 0x17], 0
jae 0x511f4d
lea ebx, [edi + 1]
cmp ebx, eax
jbe 0x511f2e
call fcn.0061c63f
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x511f3d
lea eax, [esp + 0x5c]
movzx eax, byte [ebx + eax]
push eax
mov eax, ebp
call fcn.0058df00
mov byte [esp + 0x17], al
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x34]
mov ebx, dword [edx]
lea eax, [esi*8]
sub eax, esi
mov dword [esp + 0x38], ecx
lea ecx, [eax*8 + 0x6aa7f0]
mov dword [esp + 0x2c], ecx
mov edi, edi
mov edx, dword [ebp + 0x34]
lea esi, [ebp + 0x30]
cmp esi, esi
mov dword [esp + 0x90], edx
je 0x511f86
call fcn.0061c63f
cmp ebx, dword [esp + 0x90]
je 0x512427
cmp ebx, dword [esi + 4]
jne 0x511f9d
call fcn.0061c63f
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0xc]
push eax
call fcn.005892a0
fld qword [ebp + 0x40]
mov edi, dword [ebx + 0xc]
fst qword [esp + 0x3c]
mov esi, eax
mov eax, dword [edi + 0xb8]
test eax, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
je 0x511fd5
fild dword [ebp + 0x18]
fidiv dword [esp + 0x18]
fmulp st(1)
fst qword [esp + 0x3c]
fld qword [0x65b8f8]
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x512087
mov eax, edi
fstp st(0)
mov ecx, dword [eax + 0xa8]
sub ecx, dword [eax + 0xbc]
mov ebp, dword [eax + 0xa4]
add ecx, dword [esi + 0x14]
add ebp, dword [esi + 0x10]
mov dword [esp + 0x44], ecx
add ebp, dword [esp + 0x24]
cmp byte [esp + 0x17], 0
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x18], ecx
je 0x51215c
mov edx, dword [edi + 0xac]
lea eax, [esp + 0x7c]
add esi, 0x18
push eax
lea edi, [esp + 0x1b]
mov dword [esp + 0x20], edx
call fcn.005138b0
mov edi, dword [esp + 0x7c]
test edi, edi
mov ecx, dword [esi + 4]
mov dword [esp + 0x88], ecx
je 0x51204f
cmp edi, esi
je 0x512054
call fcn.0061c63f
mov esi, dword [esp + 0x80]
cmp esi, dword [esp + 0x88]
je 0x512164
test edi, edi
jne 0x512071
call fcn.0061c63f
cmp esi, dword [edi + 4]
jne 0x51207b
call fcn.0061c63f
mov edx, dword [esi + 0x10]
add dword [esp + 0x1c], edx
jmp 0x512164
mov eax, dword [edi + 0xa4]
add eax, dword [esi + 0x10]
sub esp, 8
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fmulp st(1)
fstp qword [esp]
call fcn.00639dc0
call fcn.006397d0
mov ebp, eax
add ebp, dword [esp + 0x2c]
mov eax, edi
mov ecx, dword [eax + 0xbc]
sub ecx, dword [eax + 0xa8]
sub ecx, dword [esi + 0x14]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fmul qword [esp + 0x44]
fstp qword [esp]
call fcn.00639dc0
add esp, 8
call fcn.006397d0
fild dword [esi + 0x24]
neg eax
mov dword [esp + 0x44], eax
fmul qword [esp + 0x3c]
call fcn.006397d0
cmp byte [esp + 0x17], 0
mov dword [esp + 0x18], eax
je 0x51215c
mov edx, dword [edi + 0xac]
lea eax, [esp + 0x74]
add esi, 0x18
push eax
lea edi, [esp + 0x1b]
mov dword [esp + 0x20], edx
call fcn.005138b0
mov edi, dword [esp + 0x74]
test edi, edi
mov ecx, dword [esi + 4]
mov dword [esp + 0x4c], ecx
je 0x512128
cmp edi, esi
je 0x51212d
call fcn.0061c63f
mov esi, dword [esp + 0x78]
cmp esi, dword [esp + 0x4c]
je 0x512164
test edi, edi
jne 0x512140
call fcn.0061c63f
cmp esi, dword [edi + 4]
jne 0x51214a
call fcn.0061c63f
fild dword [esi + 0x10]
fmul qword [esp + 0x3c]
call fcn.006397d0
add dword [esp + 0x1c], eax
jmp 0x512164
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x94]
call fcn.00564370
mov esi, dword [ebx + 0xc]
mov edx, dword [esp + 0xe4]
mov edi, dword [edx]
mov ecx, dword [esi + 0x58]
imul ecx, edi
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esi + 0x68]
cmp eax, 0xff
jge 0x5121c4
mov ecx, dword [esi + 0x58]
imul ecx, edi
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esi + 0x68]
mov dword [esp + 0x94], eax
jmp 0x5121cf
mov dword [esp + 0x94], 0xff
mov ecx, dword [esp + 0xe4]
mov esi, dword [ebx + 0xc]
mov edi, dword [ecx + 4]
mov ecx, dword [esi + 0x5c]
imul ecx, edi
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esi + 0x6c]
cmp eax, 0xff
jge 0x51221d
mov ecx, dword [esi + 0x5c]
imul ecx, edi
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
add edi, dword [esi + 0x6c]
jmp 0x512222
mov edi, 0xff
mov ecx, dword [esp + 0xe4]
mov esi, dword [ebx + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [esi + 0x60]
imul ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esi + 0x70]
cmp eax, 0xff
jge 0x512278
mov edx, dword [esp + 0xe4]
mov ecx, dword [esi + 0x60]
imul ecx, dword [edx + 8]
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, dword [esi + 0x70]
jmp 0x51227d
mov ecx, 0xff
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 0x64]
mov edx, dword [esp + 0xe4]
mov edx, dword [edx + 0xc]
imul esi, edx
mov dword [esp + 0x3c], edx
mov eax, 0x80808081
imul esi
mov eax, dword [ebx + 0xc]
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
add esi, dword [eax + 0x74]
cmp esi, 0xff
jge 0x5122d8
mov esi, dword [eax + 0x64]
imul esi, dword [esp + 0x3c]
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebx + 0xc]
add eax, dword [edx + 0x74]
jmp 0x5122dd
mov eax, 0xff
mov edx, dword [ebx + 0xc]
mov esi, dword [esp + 0x20]
mov edx, dword [edx + 0xd0]
add edx, dword [esi + 0x28]
mov esi, dword [esp + 0x2c]
cmp esi, 0x6e27f0
mov dword [esp + 0x20], edx
jge 0x51241c
mov edx, dword [ebx + 0x10]
add dword [esp + 0x30], 1
add dword [esp + 0x2c], 0x38
mov dword [esi], edx
mov edx, dword [esp + 0x94]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x28]
mov dword [esi + 8], eax
lea edi, [ebx + 0x18]
push ecx
mov eax, edi
mov dword [esi + 4], ebp
call fcn.00513920
mov edx, dword [eax]
lea eax, [esp + 0x28]
push eax
mov eax, edi
mov dword [esi + 0xc], edx
call fcn.00513920
mov ecx, dword [eax + 4]
lea edx, [esp + 0x28]
push edx
mov eax, edi
mov dword [esi + 0x10], ecx
call fcn.00513920
mov eax, dword [eax + 8]
lea ecx, [esp + 0x28]
mov dword [esi + 0x14], eax
push ecx
mov eax, edi
call fcn.00513920
mov edx, dword [eax + 0xc]
mov dword [esi + 0x18], edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0xa0]
mov dword [esi + 0x1c], ecx
mov edx, dword [ebx + 0xc]
mov al, byte [edx + 0xd4]
mov byte [esi + 0x30], al
mov eax, dword [esp + 0x20]
add eax, 0x80
test eax, eax
mov dword [esi + 0x34], 0
jle 0x5123aa
cmp eax, 0xff
jge 0x5123b8
xor ecx, ecx
test eax, eax
setle cl
sub ecx, 1
and ecx, eax
jmp 0x5123bd
mov ecx, 0xff
mov edx, dword [ecx*4 + 0x6a8968]
test edx, edx
lea eax, [ecx*4 + 0x6a8968]
jne 0x5123d8
mov dword [ecx*4 + 0x6a8568], esi
jmp 0x5123db
mov dword [edx + 0x34], esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [eax], esi
lea eax, [ecx + edx]
add eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x38]
jle 0x5123f6
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xdc]
add eax, 0x30
cmp ebx, dword [eax + 4]
jne 0x51240a
call fcn.0061c63f
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xdc]
mov edi, dword [esp + 0x34]
jmp 0x511f70
mov ebp, dword [esp + 0xdc]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x6c]
add edi, 1
cmp edi, eax
mov dword [esp + 0x34], edi
jb 0x511ee6
mov eax, 0x6a8568
mov dword [esp + 0x18], eax
jmp 0x512450
mov edi, dword [eax]
test edi, edi
je 0x51252c
lea ebx, [ebx]
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
mov esi, dword [esp + 0xd8]
mov ebx, dword [esi + 0x44]
je 0x512474
mov ebx, eax
mov ebp, dword [edi]
test ebp, ebp
je 0x51251d
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x50], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], ecx
call fcn.005a3600
fild dword [edi + 4]
fild dword [esp + 0x50]
mov ecx, dword [esp + 0xe0]
fld qword [0x679300]
mov edx, eax
fmul st(1), st(0)
fxch st(2)
faddp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fadd dword [esp + 0xac]
fstp dword [esp + 0xac]
fild dword [edi + 8]
fild dword [esp + 0x54]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fadd dword [esp + 0xb8]
fstp dword [esp + 0xb8]
call fcn.00512e20
push ebx
lea edx, [edi + 0x20]
push edx
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0xb0]
push ecx
lea ebx, [esp + 0x58]
mov eax, ebp
call fcn.00512650
add esp, 0x10
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x512460
mov eax, dword [esp + 0x18]
add eax, 4
cmp eax, 0x6a8968
mov dword [esp + 0x18], eax
jl 0x512450
cmp dword [esp + 0x70], 0x10
jb 0x512552
mov edx, dword [esp + 0x5c]
push edx
call fcn.0061c19a
add esp, 4
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc4
ret