Function at 0x51a9c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5785a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x3c]
call fcn.0055443d
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], vtable.CGdiObject.0
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x57c38c
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x3c]
add eax, 0x20
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x3c]
mov dword [eax], method.CDC.virtual_0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 0x30], 0
je 0x51aaba
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
jmp 0x51ab9e
mov edx, dword [ebp - 0x3c]
add edx, 0x20
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x50]
cmp dword [ebp + 8], 0
jne 0x51aadb
mov dword [ebp - 0x40], 0
jmp 0x51aae4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.005544f4
mov eax, dword [ebp - 0x3c]
add eax, 0x20
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x20
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [edx + 0xc]
sub ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov ecx, dword [edx + 8]
sub ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x10
call fcn.00555021
mov eax, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x51ab5f
mov dword [ebp - 0x44], 0
jmp 0x51ab68
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
push edx
call fcn.00554635
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.005548e6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4