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

Disassembly:
push 0xffffffffffffffff
push 0x57bb70
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x88], eax
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0xb0]
push 0
push eax
mov dword [esp + 0x20], edx
call fcn.0052b470
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x531365
lea eax, [esi - 2]
jmp 0x5317ba
cmp dword [esi + 0x94], 0
je 0x5317b4
lea eax, [esi + 0x90]
test eax, eax
je 0x5317b4
mov ecx, esi
call fcn.0052a7d0
test al, al
je 0x5317b4
mov eax, dword [esi + 0x30]
shr eax, 1
test al, 1
jne 0x5313a2
mov eax, 0xfffffff6
jmp 0x5317ba
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, 0x400
je 0x531590
cmp eax, 0x200
je 0x531590
cmp eax, 0x100
jne 0x5317b0
call fcn.0046a090
mov edi, dword [esp + 0xac]
mov ecx, dword [esi + 0x94]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
cmp edi, 0x2000
jl 0x5313f4
mov eax, 4
jmp 0x5317ba
push 0x24
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0
push ecx
xorps xmm0, xmm0
push 0x100
push dword [esi + 0x98]
movdqu xmmword [esp + 0x38], xmm0
movdqu xmmword [esp + 0x48], xmm0
mov eax, dword [eax + 0x28]
call eax
test eax, eax
setne al
test al, al
jne 0x53143b
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
jmp 0x53178a
mov eax, edi
mov dword [esp + 0x6c], 0
cdq
lea ecx, [esp + 0x4c]
and edx, 0x1f
add edi, 0x1f
add eax, edx
xorps xmm0, xmm0
sar eax, 5
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
add eax, edi
cdq
and edx, 0x1f
push 0
movdqu xmmword [esp + 0x50], xmm0
lea edi, [edx + eax]
mov eax, 0x100
sar edi, 5
cmp edi, eax
movdqu xmmword [esp + 0x60], xmm0
cmovg edi, eax
mov dword [esp + 0x18], edi
call fcn.0045e390
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
lea eax, [esi + 0x34]
mov dword [esp + 0xa4], 1
push eax
push edi
push dword [esp + 0x30]
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x44]
push dword [esp + 0x38]
call fcn.00533470
mov edi, eax
test edi, edi
je 0x5314de
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0045fd70
jmp 0x53178a
mov edi, dword [esp + 0x24]
mov eax, edi
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x54]
shl eax, 5
sub ecx, eax
mov eax, dword [esp + 0xb4]
add eax, ecx
cmp eax, edx
jle 0x531527
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa0], 0xffffffff
mov edi, 0xfffffff6
call fcn.0045fd70
mov dword [esi + 0xa8], edi
mov eax, edi
jmp 0x5317ba
xor eax, eax
test edx, edx
mov edx, dword [esp + 0xb4]
cmovne eax, dword [esp + 0x50]
push edx
push dword [esp + 0x1c]
add eax, ecx
push eax
call fcn.0054adf0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x58]
add esp, 0xc
push eax
lea eax, [esi + 0x3c]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x44]
push edi
push eax
push dword [esp + 0x44]
push dword [esp + 0x38]
call fcn.005335e0
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa0], 0xffffffff
mov edi, eax
call fcn.0045fd70
test edi, edi
jne 0x53178e
mov eax, edi
jmp 0x5317ba
call fcn.00462b90
mov edi, dword [esi + 0x38]
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x94]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x34]
sub ecx, eax
imul ecx, edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x24], edi
cmp eax, ecx
jl 0x5315d0
mov eax, 0x69
jmp 0x5317ba
xor edx, edx
mov ecx, dword [esp + 0x24]
div edi
add ecx, dword [esp + 0xac]
xor edx, edx
mov edi, eax
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0xb4]
xorps xmm0, xmm0
dec eax
add edi, dword [esp + 0x20]
add eax, ecx
mov ecx, 0x100
div dword [esp + 0x24]
push 0
add eax, dword [esp + 0x24]
cmp eax, 0x100
movdqu xmmword [esp + 0x74], xmm0
cmovge eax, ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0x28], eax
movdqu xmmword [esp + 0x84], xmm0
call fcn.0045e390
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x70]
push eax
lea eax, [esi + 0x34]
mov dword [esp + 0xa4], 0
push eax
push dword [esp + 0x2c]
push edi
push dword [esi + 0x1c]
push dword [esp + 0x24]
call fcn.00529c60
mov dword [esp + 0x1c], eax
test eax, eax
je 0x53167c
lea ecx, [esp + 0x70]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0045fd70
jmp 0x531786
mov ecx, dword [esp + 0xac]
mov eax, edi
sub eax, dword [esi + 0x34]
imul eax, dword [esi + 0x38]
mov edx, dword [esp + 0x78]
sub ecx, eax
mov eax, dword [esp + 0xb4]
add eax, ecx
cmp eax, edx
jle 0x5316c5
lea ecx, [esp + 0x70]
mov dword [esp + 0xa0], 0xffffffff
mov edi, 0xfffffff6
call fcn.0045fd70
mov dword [esi + 0xa8], edi
mov eax, edi
jmp 0x5317ba
xor eax, eax
test edx, edx
mov edx, dword [esp + 0xb4]
cmovne eax, dword [esp + 0x74]
push edx
push dword [esp + 0x1c]
add eax, ecx
push eax
call fcn.0054adf0
mov esi, dword [esp + 0x84]
xor eax, eax
add esp, 0xc
test esi, esi
cmovne eax, dword [esp + 0x74]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x18], eax
cmp edi, dword [esp + 0x24]
jge 0x531798
lea esp, [esp]
mov edx, dword [esp + 0x14]
sub esi, eax
mov eax, edi
cmp esi, dword [edx + 0x38]
cmovae esi, dword [edx + 0x38]
sub eax, dword [edx + 0x34]
lea ecx, [eax + eax*8]
mov eax, dword [edx + 0x74]
cmp dword [eax + ecx*4 + 8], 0
je 0x531735
mov eax, dword [eax + ecx*4 + 4]
jmp 0x531737
xor eax, eax
mov ecx, dword [esp + 0xc]
push esi
push dword [esp + 0x24]
push eax
push edi
push dword [esp + 0x20]
call fcn.0052a230
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x53176e
mov eax, dword [esp + 0x18]
inc edi
add dword [esp + 0x20], esi
add eax, esi
mov dword [esp + 0x18], eax
cmp edi, dword [esp + 0x24]
jge 0x531798
mov esi, dword [esp + 0x78]
jmp 0x531710
lea ecx, [esp + 0x70]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0045fd70
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x5317b0
mov dword [esi + 0xa8], edi
mov eax, edi
jmp 0x5317ba
lea ecx, [esp + 0x70]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0045fd70
mov edi, dword [esp + 0x1c]
mov eax, edi
jmp 0x5317ba
mov eax, dword [esi + 0xa8]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0054a992
add esp, 0x98
ret 0x10