Function at 0x473af0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bf6e0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], vtable.CPen.0
mov dword [esp + 0x60], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], vtable.CBrush.0
mov byte [esp + 0x60], 1
mov ecx, dword [ebx + 4]
push 0xd
call fcn.004ccfd9
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x34]
call fcn.004cd970
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x30]
push eax
call fcn.004cda48
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0xac]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xa8]
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push eax
lea ecx, [esp + 0x2c]
call fcn.004cd970
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x28]
push edx
call fcn.004cda48
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x10]
push eax
call fcn.004ccfab
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x20]
push eax
call edx
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
push eax
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004cd3b2
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], edi
jle 0x473c37
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebx + 4]
push eax
push edx
call fcn.004cd0a2
mov esi, dword [ebx + 0x90]
cmp dword [esi + 8], edi
jle 0x473c37
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esi + 8]
cmp eax, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], eax
jge 0x473c3c
call fcn.004c788e
lea edi, [eax + 1]
call fcn.00470ec0
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
push eax
call fcn.004cda48
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [ebx + 4]
call fcn.004cda48
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
push edx
call fcn.004ccfab
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
push edx
call eax
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [ebx + 4]
call fcn.004ccfd9
mov byte [esp + 0x60], 0
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.004cd9c3
mov dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
call fcn.004cd9c3
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8