Function at 0x4ffcd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e278
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x575054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x58], esi
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [eax + 4], 0
mov dword [eax], 0
cmp dword [esi + 0x30], 0
je 0x4fff3c
mov ecx, dword [esi + 0x18]
mov eax, ecx
shr eax, 1
test al, 1
je 0x4ffd5e
mov dword [edi + 4], 3
mov dword [esi + 0x1c], 3
jmp 0x4fff3c
shr ecx, 2
test cl, 1
je 0x4ffd71
mov dword [edi], 3
jmp 0x4fff3c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x4fff3c
movzx ecx, byte [esi + 0x4b]
xorps xmm0, xmm0
movzx eax, byte [esi + 0x49]
mov dl, byte [esi + 0x48]
push ecx
movzx ecx, byte [esi + 0x4a]
push ecx
push eax
lea ecx, [ebp - 0x48]
movups xmmword [ebp - 0x30], xmm0
call fcn.00501210
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, esi
mov eax, dword [esi]
mov byte [ebp - 0x49], 0
mov eax, dword [eax]
call eax
mov dword [ebp - 0x54], eax
test eax, eax
je 0x4fff2d
lea ecx, [ebp - 0x48]
call fcn.004058f0
test al, al
jne 0x4ffe6e
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0xa4]
call eax
mov cl, byte [esi + 0x18]
and cl, 1
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x49], cl
je 0x4ffe03
mov ecx, eax
call fcn.004fc090
mov dword [ebp - 0x1c], eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00405910
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004fc400
mov esi, dword [ebp - 0x18]
add esp, 0xc
cmp byte [ebp - 0x49], 0
mov dword [esi + 4], eax
je 0x4ffe34
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x28]
xorps xmm0, xmm0
sub eax, dword [ebp - 0x30]
mov dword [esi], eax
xor esi, esi
lea eax, [ebp - 0x20]
mov byte [ebp - 0x49], 0
push eax
push 0x34
push str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
push dword [ebp - 0x50]
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
test eax, eax
mov eax, dword [ebp - 0x18]
cmovne esi, dword [ebp - 0x1c]
add dword [edi], esi
add dword [eax], esi
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x94]
call eax
test byte [esi + 0x18], 1
mov ecx, eax
mov dword [ebp - 0x18], ecx
je 0x4ffe9e
call fcn.004fc090
mov ecx, eax
mov byte [ebp - 0x49], 1
mov dword [ebp - 0x18], ecx
push ecx
lea eax, [esi + 0x4c]
mov edx, ecx
mov ecx, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004fc400
add esp, 0xc
mov dword [edi + 4], eax
cmp byte [ebp - 0x49], 0
je 0x4ffec6
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x50]
sub eax, dword [ebp - 0x30]
push dword [ebp - 0x5c]
add eax, 8
add dword [edi], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x84]
call eax
mov ecx, dword [edi + 4]
cmp ecx, eax
jge 0x4fff00
mov dword [edi + 4], eax
mov ecx, eax
mov dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0x460]
test ecx, ecx
je 0x4fff2d
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
push edx
push dword [esi + 0x2c]
push dword [esi + 4]
mov eax, dword [eax]
call eax
test al, al
je 0x4fff2d
mov eax, dword [ebp - 0x18]
add dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004032a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050f27d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8