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

Disassembly:
push 0xffffffffffffffff
push 0x54ed48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3720]
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 0x41f839
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call fcn.00506c00
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00421140
mov dword [esp + 0x4c], 1
mov edi, dword [esp + 0x4c]
jmp 0x41f948
call fcn.004201f0
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 0x41f8c3
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x24]
call fcn.005079bd
cmp dword [ebp + 0x34], 0
je 0x41f880
mov ebp, dword [ebp + 0x30]
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
push ebp
push ecx
push eax
call fcn.00506c00
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
jmp 0x41f89c
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.00506c00
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00417260
test eax, eax
jl 0x41f8ad
mov dword [esp + 0x4c], 1
lea ecx, [esp + 0x20]
call fcn.005079e6
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x41f927
mov dword [esp + 0x44], 1
call fcn.00506c00
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.005079bd
test eax, eax
je 0x41f927
mov edi, 1
lea ecx, [esp + 0x20]
mov dword [0x5beed8], edi
call fcn.0041f0d0
cmp dword [ebp + 0x34], 0
je 0x41f90b
mov edx, dword [ebp + 0x30]
jmp 0x41f915
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, eax
push esi
lea eax, [esp + 0x24]
call fcn.00417230
test eax, eax
jl 0x41f927
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.00402490
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x41fac0
cmp dword [0x5bf6d8], 7
jne 0x41f95a
call fcn.00420460
test eax, eax
je 0x41f967
cmp dword [0x5beed0], 1
jne 0x41fac0
call fcn.005089e3
test eax, eax
je 0x41f97f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ebp, eax
test ebp, ebp
jne 0x41f98d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.005012bb
mov ebp, eax
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.005076e8
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.0041ca40
lea ecx, [esp + 0x30]
call fcn.0041eeb0
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.00506c00
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00417260
lea edx, [esp + 0x28]
push edx
push esi
xor ecx, ecx
mov edx, edi
call fcn.0041ca40
lea ecx, [esp + 0x28]
call fcn.0041f580
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.00506c00
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00417260
lea edx, [esp + 0x18]
push edx
push esi
xor ecx, ecx
mov edx, edi
call fcn.0041ca40
push 0
lea ecx, [esp + 0x1c]
call fcn.0041f2f0
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.00506c00
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00417260
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.00402490
mov byte [esp + 0x44], 2
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.00402490
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebx
call fcn.00402490
mov eax, dword [esp + 0x4c]
jmp 0x41fac2
mov eax, edi
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