Function at 0x418560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x556c08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov ebp, dword [esp + 0x4c]
cmp dword [ebp + 0x4c], 0
mov dword [esp + 0x4c], 0
mov ebx, vtable.CBitmap.0
push edi
je 0x4185c8
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call fcn.0050b8e1
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00419ef0
mov edi, 1
mov dword [esp + 0x4c], edi
mov ebp, edi
jmp 0x4186d8
call fcn.00418f80
xor ecx, ecx
add esp, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebx
je 0x418652
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0050c6bb
cmp dword [ebp + 0x34], 0
je 0x41860f
mov ebp, dword [ebp + 0x30]
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
push ebp
push ecx
push eax
call fcn.0050b8e1
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
jmp 0x41862b
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call fcn.0050b8e1
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00410160
test eax, eax
jl 0x41863c
mov dword [esp + 0x4c], 1
lea ecx, [esp + 0x20]
call fcn.0050c6e4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4186b6
mov dword [esp + 0x44], 1
call fcn.0050b8e1
mov eax, dword [eax + 0xc]
movzx ecx, di
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
lea ecx, [esp + 0x24]
call fcn.0050c6bb
test eax, eax
je 0x4186b6
mov edi, 1
lea ecx, [esp + 0x20]
mov dword [0x5c9a34], edi
call fcn.00417e60
cmp dword [ebp + 0x34], 0
je 0x41869a
mov edx, dword [ebp + 0x30]
jmp 0x4186a4
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, eax
push esi
lea eax, [esp + 0x24]
call fcn.00410130
test eax, eax
jl 0x4186b6
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.004029b0
mov ebp, dword [esp + 0x4c]
test ebp, ebp
je 0x4186f2
mov edi, 1
cmp dword [0x5c9bf8], 7
jne 0x41870a
call fcn.004191f0
test eax, eax
jne 0x41870a
cmp dword [0x5c0924], edi
je 0x418712
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
cmp dword [0x5c9a2c], edi
jne 0x4186f2
call fcn.0050f6dd
test eax, eax
je 0x41872a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ebp, eax
test ebp, ebp
jne 0x418738
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00505f92
mov ebp, eax
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0050c3e6
mov edi, eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x30]
push edx
push esi
xor ecx, ecx
mov edx, edi
mov byte [esp + 0x4c], 4
call fcn.00415830
lea ecx, [esp + 0x30]
call fcn.00417c40
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
call fcn.0050b8e1
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00410160
lea edx, [esp + 0x28]
push edx
push esi
xor ecx, ecx
mov edx, edi
call fcn.00415830
lea ecx, [esp + 0x28]
call fcn.00418310
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call fcn.0050b8e1
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00410160
lea edx, [esp + 0x18]
push edx
push esi
xor ecx, ecx
mov edx, edi
call fcn.00415830
push 0
lea ecx, [esp + 0x1c]
call fcn.00418080
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov esi, dword [esi + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0050b8e1
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00410160
mov edx, dword [edi + 4]
mov eax, dword [ebp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [esp + 0x44], 3
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.004029b0
mov byte [esp + 0x44], 2
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.004029b0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebx
call fcn.004029b0
mov eax, dword [esp + 0x4c]
jmp 0x4186f4