Function at 0x406860
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45be83
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x47afa0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x78]
call fcn.004116e4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x78]
mov dword [eax], vtable.CMemDC.0
mov ecx, dword [ebp - 0x78]
add ecx, 0x10
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x48]
call fcn.00407b50
mov edx, dword [ebp - 0x48]
mov dword [edx], vtable.CBitmap.0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x18], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x4c], ecx
xor edx, edx
cmp dword [ebp - 0x4c], 0
sete dl
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x30], edx
cmp dword [ebp + 0xc], 0
jne 0x406905
mov ecx, dword [ebp - 0x78]
add ecx, 0x20
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x50]
call edx
jmp 0x406924
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x78]
add ecx, 0x20
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x30], 0
je 0x406ac1
cmp dword [ebp + 8], 0
jne 0x406940
mov dword [ebp - 0x7c], 0
jmp 0x406949
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, dword [ebp - 0x78]
call fcn.00411c10
push 2
mov edx, dword [ebp - 0x78]
add edx, 0x20
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov edx, dword [ebp - 0x78]
add edx, 0x20
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 4]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x78]
add eax, 0x20
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x58]
mov eax, dword [ecx + 8]
sub eax, dword [edx]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, dword [ebp - 0x78]
add ecx, 0x10
call fcn.00411ecc
mov edx, dword [ebp - 0x78]
add edx, 0x10
mov dword [ebp - 0x60], edx
jne 0x4069d6
mov dword [ebp - 0x80], 0
jmp 0x4069df
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 4]
push ecx
call fcn.00411fd1
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, dword [ebp - 0x78]
call fcn.004113fa
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x78]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x78]
mov eax, dword [edx + 0x48]
call eax
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x78]
mov edx, dword [eax + 0x40]
call edx
push 2
mov eax, dword [ebp - 0x78]
add eax, 0x20
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x20]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.00411800
jmp 0x406ae5
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x78]
add edx, 0x20
push edx
mov ecx, dword [ebp - 0x78]
call fcn.004287a1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8