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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 0x14], ecx
xor ecx, ecx
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
nop dword [eax + eax]
movzx eax, byte [ebx + ecx]
inc ecx
inc dword [esp + eax*4 + 0x30]
cmp ecx, 0x13
jb 0x5239f0
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 + 0x50], 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 + 0x34], 0
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 dword [esp + 0x74], 0
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 + 0x5c], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x70], esi
je 0x523bc2
cmp ecx, 0x80
jne 0x523bce
xor edi, edi
movzx edx, byte [ebx + edi]
test edx, edx
je 0x523b84
mov ebx, dword [esp + edx*4 + 0x30]
mov ecx, 7
sub ecx, edx
mov esi, 1
shl esi, cl
lea eax, [ebx + 1]
sub ebx, dword [esp + edx*4 + 0x70]
shl ebx, cl
xor ecx, ecx
add ebx, dword [esp + edx*4 + 0x4c]
add ebx, dword [esp + 0x18]
mov dword [esp + edx*4 + 0x30], eax
lea eax, [edx + edi*8]
movd xmm0, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
pshufd xmm0, xmm0, 0
test esi, esi
je 0x523b81
cmp esi, 0x10
jb 0x523b6e
andps xmm0, xmmword [0x58cd30]
mov ebx, esi
mov eax, dword [esp + 0x14]
and ebx, 0xfffffff0
packuswb xmm0, xmm0
add eax, 8
packuswb xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
mov edx, dword [esp + 0x20]
nop word [eax + eax]
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 0x523b50
cmp ecx, esi
jae 0x523b81
mov ebx, dword [esp + 0x14]
sub esi, ecx
lea eax, [ecx + ebx]
push esi
push dword [esp + 0x20]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ebx, dword [ebp + 8]
inc edi
cmp edi, 0x13
jb 0x523ad4
cmp byte [ebp + 0xc], 0
jne 0x523bb7
mov ecx, dword [esp + 0x6c]
mov eax, 0x80
mov edx, dword [esp + 0x18]
sub eax, ecx
lea ecx, [ecx + edx]
je 0x523bb7
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 0x523ad2
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8