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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
push esi
xor esi, esi
push edi
movsd qword [ecx + 0x20], xmm0
mov dword [esp + 0x40], esi
cmp dword [ecx + 0x10], esi
jbe 0x53f6b2
xor edx, edx
xor edi, edi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ecx + 0x14]
add ebx, edi
mov dword [esp + 0x30], ebx
mov eax, dword [eax + 0x15d0]
add eax, edx
xor edx, edx
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
cmp dword [ebx + 0x14], edx
jbe 0x53f68f
xor edi, edi
mov dword [esp + 0x2c], edi
nop dword [eax + eax]
mov eax, dword [ebx + 0x1c]
add eax, edi
mov dword [esp + 0x64], 0
mov dword [esp + 0x34], eax
cmp dword [eax + 0x18], 0
jbe 0x53f66c
lea esi, [eax + 0x2c]
mov dword [esp + 0x28], esi
lea eax, [esi - 0x10]
push eax
call fcn.00523ff0
add esp, 4
test eax, eax
jne 0x53f647
movss xmm0, dword [esi + 0x10]
sub esp, 8
mulss xmm0, dword [0x604f50]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x80], xmm0
fld qword [esp + 0x80]
fstp qword [esp]
call fcn.0059a9f0
fstp qword [esp + 0x80]
cvttsd2si ecx, qword [esp + 0x80]
mov eax, 0x4000000
xor edi, edi
cdq
add esp, 8
mov dword [esp + 0x5c], edi
idiv ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov ecx, dword [edx + 0x14]
imul ecx, dword [edx + 0x10]
test ecx, ecx
je 0x53f647
mov edx, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x60], esi
mov ecx, dword [edx + 4]
add ecx, esi
mov dword [esp + 0x54], 0
mov dword [esp + 0x78], ecx
mov eax, dword [ecx + 0x10]
imul eax, dword [ecx + 0x14]
test eax, eax
je 0x53f622
xor esi, esi
mov dword [esp + 0x58], esi
nop dword [eax]
mov eax, dword [ecx + 0x18]
xor ebx, ebx
add eax, esi
mov dword [esp + 0x50], eax
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 0x10]
sub edi, dword [edx - 0x10]
sub esi, dword [edx - 0xc]
mov edx, dword [edx]
mov dword [esp + 0x48], edx
test dl, 1
je 0x53f4a5
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ecx + eax - 0x90]
sub eax, dword [ecx + edx - 0x98]
mov edx, dword [esp + 0x48]
add edi, eax
test dl, 2
je 0x53f4c5
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + edx - 0x8c]
sub eax, dword [ecx + edx - 0x94]
add esi, eax
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x18]
sub eax, dword [ecx + 0x10]
push eax
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
push eax
push dword [ebp + 8]
call fcn.0052e700
add esp, 0xc
test eax, eax
je 0x53f6be
mov eax, dword [ebp + 8]
imul esi, dword [esp + 0x38]
mov edx, dword [eax + 0x7c]
mov ecx, dword [eax + 0x80]
mov eax, dword [esp + 0x38]
add esi, edi
sub eax, edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], ecx
mov eax, dword [eax + 0x24]
lea edi, [eax + esi*4]
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x38]
mov dword [eax + 0x74], edi
mov dword [eax + 0x8c], esi
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x14], 1
jne 0x53f559
test ecx, ecx
je 0x53f59f
mov esi, dword [esp + 0x44]
nop dword [eax + eax]
test edx, edx
je 0x53f550
mov eax, edx
shl dword [edi + ebx*4], 6
inc ebx
sub eax, 1
jne 0x53f546
add ebx, esi
sub ecx, 1
jne 0x53f540
jmp 0x53f59f
test ecx, ecx
je 0x53f59f
mov esi, dword [esp + 0x44]
test edx, edx
je 0x53f594
mov ecx, edx
nop word [eax + eax]
mov eax, dword [edi + ebx*4]
imul dword [esp + 0x70]
add eax, 0x1000
adc edx, 0
shrd eax, edx, 0x12
mov dword [edi + ebx*4], eax
inc ebx
sub ecx, 1
jne 0x53f570
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x74]
add ebx, esi
sub ecx, 1
mov dword [esp + 0x48], ecx
jne 0x53f561
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x14]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x38]
push eax
push dword [eax + 0x10]
movss xmm0, dword [esi + 0x10]
push dword [ecx + 0x10]
mov eax, dword [ebx + 0x14]
sub eax, dword [esp + 0x50]
sub esp, 8
cvtps2pd xmm0, xmm0
dec eax
movsd qword [esp], xmm0
push dword [ecx + 0x14]
push eax
push dword [esp + 0x64]
push dword [esi]
push dword [esp + 0x7c]
push dword [ebp + 8]
call fcn.0053ee50
mov ecx, dword [esp + 0xac]
add esp, 0x34
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
inc edx
add esi, 0x34
mov dword [esp + 0x54], edx
mov eax, dword [ecx + 0x10]
imul eax, dword [ecx + 0x14]
mov dword [esp + 0x58], esi
cmp edx, eax
mov edx, dword [esp + 0x28]
jb 0x53f460
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x34]
inc edi
add esi, 0x28
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
mov eax, dword [ecx + 0x14]
imul eax, dword [ecx + 0x10]
cmp edi, eax
jb 0x53f433
mov esi, dword [esp + 0x28]
jmp 0x53f64b
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x64]
add esi, 0x24
inc eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x64], eax
cmp eax, dword [ecx + 0x18]
jb 0x53f3b2
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
inc edx
add edi, 0x98
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], edi
cmp edx, dword [ebx + 0x14]
jb 0x53f390
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
inc esi
add edi, 0x4c
mov dword [esp + 0x40], esi
add edx, 0x438
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edx
cmp esi, dword [ecx + 0x10]
jb 0x53f352
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret