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

Disassembly:
mov eax, 0x805078
call fcn.007eae2c
sub esp, 0xa8
mov eax, dword [ebp + 0xc]
movss xmm0, dword [0x8a9b30]
push ebx
push esi
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x88], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x28], edx
movss dword [ebp - 0x64], xmm0
push edi
lea edx, [ecx + esi]
mov dword [ebp - 0x44], edx
test esi, esi
jle 0x54d5c6
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, edx
maxss xmm0, dword [0x8a9a80]
cvtdq2ps xmm1, xmm1
jmp 0x54d5e0
jns 0x54d5e9
movd xmm1, ecx
sub ecx, esi
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
maxss xmm1, dword [0x8a9a80]
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp - 0x64], xmm1
mov edi, dword [eax + 0x38]
mov ecx, dword [eax + 8]
dec edi
mov esi, dword [eax + 0x3c]
mov ebx, dword [eax + 4]
dec esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x24], ecx
lea eax, [ebx + edi]
mov dword [ebp - 0x94], ecx
add ecx, esi
mov dword [ebp - 0x98], ebx
mov esi, dword [ebp - 0x84]
mov edi, edx
add esi, edx
mov dword [ebp - 0x48], ebx
add edx, dword [ebp - 0x7c]
neg edi
mov dword [ebp - 0x14], esi
mov esi, ebx
mov ebx, dword [ebp - 0x44]
sub esi, ebx
mov dword [ebp - 0x50], esi
mov esi, dword [ebp - 0x24]
sub esi, ebx
mov dword [ebp - 0x90], eax
add ebx, eax
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x44]
add eax, ecx
mov dword [ebp - 0x68], ebx
mov ebx, esi
cmp edi, ebx
push 0x90
cmovl ebx, edi
cmp edx, eax
mov dword [ebp - 0x60], ebx
cmovg eax, edx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x50]
cmp edi, eax
cmovl eax, edi
mov edi, dword [ebp - 0x68]
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x50], eax
cmovg edi, dword [ebp - 0x14]
mov dword [ebp - 0x68], edi
call fcn.00795dab
mov esi, eax
mov dword [ebp - 0x3c], esi
and dword [ebp - 4], 0
sub edi, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x80]
mov edx, esp
sub ecx, ebx
inc ecx
inc edi
mov dword [edx + 4], ecx
mov ecx, esi
mov dword [edx], edi
call fcn.005563e1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
xor edi, edi
push eax
mov dword [ebp - 0x5c], edi
call fcn.00439af8
mov ebx, dword [ebp - 0x88]
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x5c]
test esi, esi
jne 0x54d6db
push edi
mov ecx, ebx
mov dword [ebx], edi
call fcn.00439af8
mov eax, ebx
jmp 0x54dccf
mov eax, dword [ebp + 0xc]
xor edx, edx
push edx
push edx
push esi
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x4c], edx
mov ecx, dword [ecx + 0x38]
mov eax, dword [ecx]
call dword [eax + 0x60]
xor edi, edi
mov dword [ebp - 0x3c], edi
test eax, eax
je 0x54d73d
mov edx, dword [eax]
mov edi, eax
mov ecx, eax
mov dword [ebp - 0x3c], edi
call dword [edx + 8]
mov byte [ebp - 4], 3
test edi, edi
jne 0x54d762
and dword [ebx], edi
mov ecx, ebx
push edi
call fcn.00439af8
mov dword [ebp - 4], 5
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
jmp 0x54d6d4
mov eax, dword [ebp - 0x50]
push ecx
push ecx
mov ecx, dword [ebp - 0x60]
mov edx, esp
neg ecx
neg eax
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xc4]
cmp byte [ebp + 0x10], 0
je 0x54d96a
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x38]
mov eax, dword [ecx]
call dword [eax + 0x4c]
and dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.0041c22b
movd xmm0, dword [ebp - 0x54]
cvtdq2ps xmm0, xmm0
mov byte [ebp - 4], 6
push ecx
push ecx
mov eax, esp
mov ebx, dword [ebp - 0x14]
push ecx
push ecx
movss dword [eax], xmm0
movd xmm0, dword [ebp - 0x58]
cvtdq2ps xmm0, xmm0
movss dword [eax + 4], xmm0
mov eax, esp
movd xmm0, dword [ebp - 0x30]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
movss dword [eax], xmm0
movd xmm0, dword [ebp - 0x34]
cvtdq2ps xmm0, xmm0
movss dword [eax + 4], xmm0
mov eax, esp
movd xmm0, dword [ebp - 0x38]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
movss dword [eax], xmm0
movd xmm0, dword [ebp - 0x20]
cvtdq2ps xmm0, xmm0
movss dword [eax + 4], xmm0
mov eax, esp
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
movss dword [eax], xmm0
movd xmm0, dword [ebp - 0x2c]
cvtdq2ps xmm0, xmm0
movss dword [eax + 4], xmm0
mov edx, dword [ebp - 0x8c]
sub edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
inc edx
sub ecx, dword [ebp - 0x98]
inc ecx
push ecx
push ecx
mov eax, esp
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
push ecx
push ecx
movss dword [eax], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [eax + 4], xmm0
mov eax, esp
movd xmm0, dword [ebp - 0x98]
cvtdq2ps xmm0, xmm0
movss dword [eax], xmm0
movd xmm0, dword [ebp - 0x94]
cvtdq2ps xmm0, xmm0
movss dword [eax + 4], xmm0
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x34]
push dword [ebp - 0x28]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x40]
call dword [eax + 0x60]
cmp byte [ebp + 0x14], 0
je 0x54d957
push ecx
push ecx
mov ecx, dword [ebp - 0x54]
xor eax, eax
inc eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x58]
mov dword [eax + 4], ecx
push ecx
push ecx
mov ecx, dword [ebp - 0x30]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], ecx
push ecx
push ecx
mov ecx, dword [ebp - 0x38]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
push ecx
push ecx
mov ecx, dword [ebp - 0x2c]
mov eax, esp
sub esp, 0x10
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax], ebx
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
lea ecx, [ebp - 0x78]
call fcn.0054d524
mov ecx, dword [ebp - 0x48]
add esp, 0x28
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x1c]
call fcn.0054d4f9
add esp, 8
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x44]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x70]
add eax, edx
sub edx, dword [ebp - 0x78]
add eax, ecx
add edx, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x6c]
add eax, ebx
sub ebx, dword [ebp - 0x74]
add eax, ecx
add ebx, ecx
mov ecx, dword [ebp - 0x14]
cmp edx, ecx
cmovg ecx, edx
cmp ebx, eax
mov dword [esi + 0x5c], ecx
cmovg eax, ebx
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ecx
mov eax, dword [esi + 0x60]
mov dword [esi + 0x68], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
jmp 0x54da44
mov eax, dword [edi]
lea ecx, [ebp - 0x98]
push ecx
push dword [ebp - 0x40]
mov ecx, edi
call dword [eax + 0x68]
cmp byte [ebp + 0x14], 0
je 0x54da44
push ecx
push ecx
mov ecx, dword [ebp - 0x54]
xor eax, eax
inc eax
mov ebx, dword [ebp - 0x14]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x58]
mov dword [eax + 4], ecx
push ecx
push ecx
mov ecx, dword [ebp - 0x30]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], ecx
push ecx
push ecx
mov ecx, dword [ebp - 0x38]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
push ecx
push ecx
mov ecx, dword [ebp - 0x2c]
mov eax, esp
sub esp, 0x10
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax], ebx
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
lea ecx, [ebp - 0x78]
call fcn.0054d524
mov ecx, dword [ebp - 0x48]
add esp, 0x28
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x1c]
call fcn.0054d4f9
add esp, 8
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x44]
add eax, eax
lea ecx, [edx + eax]
sub edx, dword [ebp - 0x78]
add ecx, dword [ebp - 0x70]
add edx, eax
mov dword [ebp - 0x3c], ecx
lea ecx, [ebx + eax]
sub ebx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x6c]
add ebx, eax
mov eax, dword [ebp - 0x3c]
cmp edx, eax
cmovg eax, edx
cmp ebx, ecx
mov dword [esi + 0x5c], eax
cmovg ecx, ebx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x60]
mov dword [esi + 0x68], eax
mov byte [ebp - 4], 8
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
lea ebx, [esi + 0x20]
push ebx
lea ecx, [ebp - 0x30]
call fcn.005557c1
push ecx
push ecx
mov ecx, dword [ebp - 0x44]
mov eax, esp
mov byte [ebp - 4], 9
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, esi
call fcn.005a6513
mov eax, dword [esi]
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, esi
call dword [eax + 0x54]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x54da8f
add eax, 0xc
mov dword [ebp - 0x14], eax
jmp 0x54da93
and dword [ebp - 0x14], 0
mov edi, dword [ebx]
mov ecx, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0x48]
push ecx
lea eax, [edi + 0xc]
mov dword [ebp - 0x20], ecx
neg edi
push ecx
sbb edi, edi
and dword [ebp - 0xa8], 0
and dword [ebp - 0xa4], 0
and edi, eax
lea eax, [ecx - 1]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xac]
dec eax
mov dword [ebp - 0x9c], eax
mov eax, esp
mov dword [eax + 4], ecx
lea ecx, [ebp - 0xa8]
mov dword [eax], ebx
lea eax, [ebp - 0x78]
push eax
call fcn.00490470
mov eax, dword [ebp - 0xa8]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0xa4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xa0]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x9c]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x78]
call fcn.00426c4b
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x70]
add edx, ebx
mov ecx, dword [ebp - 0x24]
add eax, ebx
mov ebx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x74]
add ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], eax
cmp ecx, ebx
jg 0x54dbfd
mov ecx, dword [ebp - 0x20]
mov eax, ecx
mov esi, dword [ebp - 0x3c]
sub ebx, esi
shl eax, 2
mov dword [ebp - 0x54], eax
mov eax, ecx
shl eax, 2
mov dword [ebp - 0x58], eax
mov eax, ecx
imul eax, esi
add eax, edx
lea eax, [eax*4 + 3]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, esi
sub eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x4c]
imul eax, ecx
sub eax, dword [ebp - 0x48]
add eax, edx
lea ecx, [eax*4 + 3]
mov eax, dword [ebp - 0x2c]
add ecx, edi
mov edi, dword [ebp - 0x34]
inc ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ebx
cmp edx, edi
jg 0x54dbe6
sub edi, dword [ebp - 0x38]
mov edx, ecx
mov ebx, eax
inc edi
movzx eax, byte [ebx]
cmp eax, 0xff
jne 0x54dbad
mov dword [edx - 3], esi
jmp 0x54dbcc
test eax, eax
je 0x54dbcc
mov ecx, 0xff
sub ecx, eax
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov byte [edx - 1], cl
mov byte [edx - 2], cl
mov byte [edx - 3], cl
add ebx, 4
add edx, 4
sub edi, 1
jne 0x54db9e
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x34]
add ecx, dword [ebp - 0x58]
add eax, dword [ebp - 0x54]
sub ebx, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ebx
jne 0x54db92
mov esi, dword [ebp - 0x5c]
mov ecx, dword [esi + 0x20]
mov edi, ecx
neg edi
sbb edi, edi
lea eax, [ecx + 0xc]
and edi, eax
test ecx, ecx
je 0x54dc1a
mov ebx, dword [ecx + 4]
add ebx, 3
lea ebx, [ecx + ebx*4]
jmp 0x54dc1c
xor ebx, ebx
cmp edi, ebx
jae 0x54dc72
mov eax, dword [ebp + 0xc]
add eax, 0x14
mov esi, eax
movzx eax, byte [edi + 2]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x64]
call fcn.007e4780
movzx ecx, al
mov edx, 0xff
cmp eax, edx
lea eax, [ebp + 0xc]
push eax
cmovb edx, ecx
mov ecx, esi
movzx eax, dl
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0053ba7c
mov ecx, eax
call fcn.0044b1b9
mov eax, dword [eax]
mov dword [edi], eax
add edi, 4
cmp edi, ebx
jb 0x54dc28
mov esi, dword [ebp - 0x5c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x84]
sub ecx, dword [ebp - 0x68]
mov edi, dword [ebp - 0x88]
mov dword [esi + 0x80], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x84], eax
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x80]
mov dword [esi + 0x88], ecx
mov ecx, edi
mov dword [esi + 0x8c], eax
and dword [edi], 0
push esi
call fcn.00439af8
lea ecx, [ebp - 0x30]
call fcn.00421c2f
mov dword [ebp - 4], 0xa
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret