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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd550
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x629560]
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.004db955
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.004dc2ec
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 4]
call fcn.004dc3c4
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.004dc2ec
mov ecx, dword [esi + 4]
lea eax, [esp + 0x28]
push eax
call fcn.004dc3c4
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
call fcn.004db927
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 0x4821b2
cmp edx, ebx
jge 0x4821b2
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 0x482053
mov eax, dword [ecx + 8]
add eax, 0xffffffff
jmp 0x482056
lea eax, [edi - 1]
test eax, eax
jl 0x4821b2
cmp eax, dword [ecx + 8]
jge 0x4821b2
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 0x4820c0
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.004dbd2e
mov ecx, dword [esi + 4]
push edi
push ebx
call fcn.004dba1e
mov ecx, dword [esi + 4]
push edi
push ebx
lea eax, [esp + 0x40]
push eax
call fcn.004dbd2e
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 4]
push edx
push eax
call fcn.004dba1e
cmp dword [esi + 0xb0], 0
jne 0x482107
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.004dbd2e
mov ecx, dword [esi + 4]
push edi
push ebx
call fcn.004dba1e
mov ecx, dword [esi + 4]
push edi
push ebx
lea eax, [esp + 0x40]
push eax
call fcn.004dbd2e
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 4]
push edx
push eax
call fcn.004dba1e
mov ecx, dword [esi + 0xb0]
test ecx, ecx
mov eax, dword [esi + 0x90]
jl 0x4821b2
cmp ecx, dword [eax + 8]
jge 0x4821b2
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.004dc3c4
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push edx
call fcn.004dc3c4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push eax
call fcn.004db927
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.004db955
mov byte [esp + 0x58], 0
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.004dc33f
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
call fcn.004dc33f
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.004d633a
int3