Function at 0x102126e
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1038e48]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x58]
shl edi, 4
xor ebx, ebx
add eax, edi
mov dword [ebp - 0x68], ebx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x58], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x54], eax
cmp dword [0x10383d4], ebx
jne 0x10214ed
lea eax, [ebp - 0x4c]
push eax
call fcn.0102734c
cmp eax, ebx
jge 0x10212c7
mov eax, 0xc0000001
jmp 0x1021504
mov eax, dword [ebp - 0x4c]
mov dword [0x10383d4], eax
push 0x20
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x59]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [0x1038e48]
push dword [edi + eax + 0xc]
push dword [esi + 0xc4]
call fcn.01024970
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x4c]
push 1
push dword [eax + 4]
call fcn.01026d03
mov edx, dword [0x1038030]
mov ecx, dword fs:[0x18]
add eax, 0xc
push eax
mov eax, dword [ecx + 0x30]
add edx, 0x300000
push edx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
jne 0x1021347
mov eax, 0xc0000017
jmp 0x1021504
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov ecx, dword [0x1038080]
imul eax, eax, 0x18
push dword [eax + ecx]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.ntdll.dll_DbgPrintEx]
mov dword [ebp - 0x6c], eax
xor eax, eax
push esi
mov word [ebp - 0x5e], ax
mov eax, dword fs:[0x18]
push esi
mov word [ebp - 0x60], bx
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlSizeHeap]
push eax
push 1
lea eax, [ebp - 0x60]
push eax
push dword [0x1038268]
call sub.GDI32.dll_GetStringBitmapW
test eax, eax
je 0x10214bc
mov ax, word [esi]
mov word [ebp - 0x48], ax
mov ax, word [esi + 4]
mov word [ebp - 0x46], ax
lea eax, [esi + 8]
push eax
push 1
push dword [ebp - 0x48]
push ebx
push dword [0x10383d4]
call fcn.0102752d
mov dword [ebp - 0x50], eax
test eax, eax
jge 0x10213f9
movsx eax, word [ebp - 0x46]
push eax
movsx eax, word [ebp - 0x48]
push eax
movzx eax, bx
push eax
push 0x1021548
push 1
push 0x70
call edi
push 0x100ac30
push 1
push 0x70
call edi
add esp, 0x24
mov eax, dword [ebp - 0x54]
cmp word [ebp - 0x48], ax
jne 0x1021410
mov cx, word [ebp - 0x46]
cmp cx, word [ebp - 0x52]
je 0x10214ac
push 2
push eax
call fcn.01026d03
mov edx, dword [0x1038030]
mov ecx, dword fs:[0x18]
push eax
mov eax, dword [ecx + 0x30]
add edx, 0x300000
push edx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x64], eax
test eax, eax
je 0x10214ac
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x48]
push ebx
push dword [0x10383d4]
call fcn.010272a0
push dword [ebp - 0x64]
push 2
push dword [ebp - 0x54]
push ebx
push dword [0x10383d4]
call fcn.0102752d
mov dword [ebp - 0x50], eax
test eax, eax
jge 0x1021495
movsx eax, word [ebp - 0x52]
push eax
movsx eax, word [ebp - 0x54]
push eax
movzx eax, bx
push eax
push 0x1021518
push 1
push 0x70
call edi
push 0x100ac30
push 1
push 0x70
call edi
add esp, 0x24
push dword [ebp - 0x64]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
inc ebx
mov eax, 0x80
cmp bx, ax
jae 0x10214c3
jmp 0x102136d
mov dword [ebp - 0x50], 0xc0000001
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 0x6c]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x50], 0
jl 0x1021501
push 0
push 0
push 8
lea eax, [ebp - 0x58]
push eax
push 0xd
call sub.GDI32.dll_GdiFullscreenControl
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010015a8
leave
ret 4