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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movzx eax, byte [edi]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], 0
inc dword [esp + eax*4 + 0x30]
movzx eax, byte [edi + 1]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x74], 0
inc dword [esp + eax*4 + 0x30]
movzx eax, byte [edi + 2]
inc dword [esp + eax*4 + 0x30]
movzx eax, byte [edi + 3]
inc dword [esp + eax*4 + 0x30]
movzx eax, byte [edi + 4]
inc dword [esp + eax*4 + 0x30]
movzx eax, byte [edi + 5]
inc dword [esp + eax*4 + 0x30]
movzx eax, byte [edi + 6]
inc dword [esp + eax*4 + 0x30]
movzx eax, byte [edi + 7]
inc dword [esp + eax*4 + 0x30]
mov esi, dword [esp + 0x34]
mov edx, esi
mov ecx, dword [esp + 0x38]
mov eax, ecx
shl eax, 5
mov dword [esp + 0x38], esi
mov dword [esp + 0x78], esi
add esi, ecx
mov ecx, dword [esp + 0x3c]
shl edx, 6
mov dword [esp + 0x54], edx
add edx, eax
mov eax, ecx
mov dword [esp + 0x3c], esi
shl eax, 4
mov dword [esp + 0x7c], esi
add esi, ecx
mov dword [esp + 0x58], edx
add edx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], esi
mov dword [esp + 0x80], esi
add esi, eax
mov dword [esp + 0x84], esi
lea ecx, [edx + eax*8]
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x44], esi
add esi, eax
mov dword [esp + 0x88], esi
lea ecx, [ecx + eax*4]
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x48], esi
add esi, eax
mov dword [esp + 0x8c], esi
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x68], ecx
add ecx, eax
mov dword [esp + 0x4c], esi
add esi, eax
cmp byte [ebp + 0xc], 0
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x70], esi
je 0x52f8a6
cmp ecx, 0x80
jne 0x52f8b2
xor ebx, ebx
mov dword [esp + 0x14], ebx
nop
movzx edx, byte [edi + ebx]
test edx, edx
je 0x52f864
mov edi, dword [esp + edx*4 + 0x30]
mov ecx, 7
sub ecx, edx
mov esi, 1
shl esi, cl
lea eax, [edi + 1]
sub edi, dword [esp + edx*4 + 0x70]
shl edi, cl
xor ecx, ecx
add edi, dword [esp + edx*4 + 0x4c]
add edi, dword [esp + 0x18]
mov dword [esp + edx*4 + 0x30], eax
lea eax, [edx + ebx*8]
movd xmm0, eax
mov dword [esp + 0x1c], eax
pshufd xmm0, xmm0, 0
test esi, esi
je 0x52f861
cmp esi, 0x10
jb 0x52f84e
andps xmm0, xmmword [0x58cd30]
lea eax, [edi + 8]
packuswb xmm0, xmm0
mov ebx, esi
packuswb xmm0, xmm0
and ebx, 0xfffffff0
movaps xmmword [esp + 0x20], xmm0
mov edx, dword [esp + 0x20]
nop
mov dword [eax - 8], edx
lea eax, [eax + 0x10]
mov dword [eax - 0x14], edx
add ecx, 0x10
mov dword [eax - 0x10], edx
mov dword [eax - 0xc], edx
cmp ecx, ebx
jb 0x52f830
mov ebx, dword [esp + 0x14]
cmp ecx, esi
jae 0x52f861
sub esi, ecx
lea eax, [ecx + edi]
push esi
push dword [esp + 0x20]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, dword [ebp + 8]
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, 8
jb 0x52f7c0
cmp byte [ebp + 0xc], 0
jne 0x52f89b
mov ecx, dword [esp + 0x6c]
mov eax, 0x80
mov edx, dword [esp + 0x18]
sub eax, ecx
lea ecx, [ecx + edx]
je 0x52f89b
push eax
push 0xff
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ecx, 0x80
jbe 0x52f7b9
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8