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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510c40
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], vtable.CPen.0
mov dword [esp + 0x58], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], vtable.CBrush.0
mov byte [esp + 0x58], 1
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 4]
push eax
call fcn.004c9e09
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x34]
call fcn.004ca7ae
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 4]
call fcn.004ca886
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0xa8]
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xac]
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push eax
lea ecx, [esp + 0x2c]
call fcn.004ca7ae
mov ecx, dword [esi + 4]
lea eax, [esp + 0x28]
push eax
call fcn.004ca886
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
call fcn.004c9ddb
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
push eax
call edx
mov edi, dword [esi + 0xb0]
mov ecx, dword [esi + 0x90]
mov ebx, dword [ecx + 8]
mov dword [esp + 0x20], eax
lea eax, [edi + 1]
cdq
idiv ebx
test edx, edx
jl 0x4754c2
cmp edx, ebx
jge 0x4754c2
test edi, edi
mov eax, dword [ecx + 4]
lea eax, [eax + edx*8]
mov edx, dword [eax]
mov dword [esi + 0x2c], edx
mov eax, dword [eax + 4]
mov dword [esi + 0x30], eax
jne 0x475363
mov eax, dword [ecx + 8]
add eax, 0xffffffff
jmp 0x475366
lea eax, [edi - 1]
test eax, eax
jl 0x4754c2
cmp eax, dword [ecx + 8]
jge 0x4754c2
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*8]
mov ebx, dword [ebp + 8]
lea eax, [ecx + eax*8]
mov dword [esi + 0x24], edx
mov ecx, dword [eax + 4]
test edi, edi
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x28], ecx
je 0x4753d0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push edx
lea edx, [esp + 0x40]
push edx
call fcn.004ca1f0
mov ecx, dword [esi + 4]
push edi
push ebx
call fcn.004c9ed2
mov ecx, dword [esi + 4]
push edi
push ebx
lea eax, [esp + 0x40]
push eax
call fcn.004ca1f0
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 4]
push edx
push eax
call fcn.004c9ed2
cmp dword [esi + 0xb0], 0
jne 0x475417
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 4]
push edx
push eax
lea edx, [esp + 0x40]
push edx
call fcn.004ca1f0
mov ecx, dword [esi + 4]
push edi
push ebx
call fcn.004c9ed2
mov ecx, dword [esi + 4]
push edi
push ebx
lea eax, [esp + 0x40]
push eax
call fcn.004ca1f0
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 4]
push edx
push eax
call fcn.004c9ed2
mov ecx, dword [esi + 0xb0]
test ecx, ecx
mov eax, dword [esi + 0x90]
jl 0x4754c2
cmp ecx, dword [eax + 8]
jge 0x4754c2
mov eax, dword [eax + 4]
mov dword [eax + ecx*8], ebx
mov dword [eax + ecx*8 + 4], edi
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
call fcn.004ca886
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push edx
call fcn.004ca886
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push eax
call fcn.004c9ddb
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x20]
mov edx, dword [edx + 0x2c]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
push eax
call fcn.004c9e09
mov byte [esp + 0x58], 0
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.004ca801
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
call fcn.004ca801
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004c463b
int3