Function at 0x101222b0
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 0x101848c8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x101fb008]
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 - 0x50], 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 0x10122518
mov ecx, dword [esi + 0x18]
mov eax, ecx
shr eax, 1
test al, 1
je 0x1012233e
mov dword [edi + 4], 3
mov dword [esi + 0x1c], 3
jmp 0x10122518
shr ecx, 2
test cl, 1
je 0x10122351
mov dword [edi], 3
jmp 0x10122518
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10122518
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.10123860
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 ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x10122509
cmp dword [ebp - 0x38], 0
je 0x1012244a
mov eax, dword [ecx]
mov eax, dword [eax + 0xa4]
call eax
test byte [esi + 0x18], 1
mov ecx, eax
mov dword [ebp - 0x1c], ecx
je 0x101223dd
call fcn.1011e620
mov ecx, eax
mov byte [ebp - 0x49], 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push ecx
cmovae eax, dword [ebp - 0x48]
mov edx, ecx
mov ecx, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1011e990
mov esi, dword [ebp - 0x50]
add esp, 0xc
cmp byte [ebp - 0x49], 0
mov dword [esi + 4], eax
je 0x10122410
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 - 0x54]
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
test eax, eax
mov eax, dword [ebp - 0x50]
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 - 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x94]
call eax
test byte [esi + 0x18], 1
mov ecx, eax
mov dword [ebp - 0x50], ecx
je 0x1012247a
call fcn.1011e620
mov ecx, eax
mov byte [ebp - 0x49], 1
mov dword [ebp - 0x50], ecx
push ecx
lea eax, [esi + 0x4c]
mov edx, ecx
mov ecx, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1011e990
add esp, 0xc
mov dword [edi + 4], eax
cmp byte [ebp - 0x49], 0
je 0x101224a2
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x54]
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 - 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x84]
call eax
mov ecx, dword [edi + 4]
cmp ecx, eax
jge 0x101224dc
mov dword [edi + 4], eax
mov ecx, eax
mov dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0x460]
test ecx, ecx
je 0x10122509
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 0x10122509
mov eax, dword [ebp - 0x18]
add dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10006810
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.10147fe4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8