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

Disassembly:
push 0xffffffffffffffff
push 0x54b118
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab720]
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 0x41f1f8
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call fcn.00503137
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00420b20
mov edi, 1
mov dword [esp + 0x4c], edi
mov ebp, edi
jmp 0x41f308
call fcn.0041fbb0
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 0x41f282
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00503f2f
cmp dword [ebp + 0x34], 0
je 0x41f23f
mov ebp, dword [ebp + 0x30]
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
push ebp
push ecx
push eax
call fcn.00503137
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
jmp 0x41f25b
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.00503137
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00416bf0
test eax, eax
jl 0x41f26c
mov dword [esp + 0x4c], 1
lea ecx, [esp + 0x20]
call fcn.00503f58
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x41f2e6
mov dword [esp + 0x44], 1
call fcn.00503137
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.00503f2f
test eax, eax
je 0x41f2e6
mov edi, 1
lea ecx, [esp + 0x20]
mov dword [0x5b6ea4], edi
call fcn.0041ea90
cmp dword [ebp + 0x34], 0
je 0x41f2ca
mov edx, dword [ebp + 0x30]
jmp 0x41f2d4
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, eax
push esi
lea eax, [esp + 0x24]
call fcn.00416bc0
test eax, eax
jl 0x41f2e6
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.00402b40
mov ebp, dword [esp + 0x4c]
test ebp, ebp
je 0x41f322
mov edi, 1
cmp dword [0x5b7688], 7
jne 0x41f33a
call fcn.0041fe20
test eax, eax
jne 0x41f33a
cmp dword [0x5ae4cc], edi
je 0x41f342
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 [0x5b6e9c], edi
jne 0x41f322
call fcn.00504604
test eax, eax
je 0x41f35a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ebp, eax
test ebp, ebp
jne 0x41f368
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.004fd874
mov ebp, eax
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00503c5a
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.0041c3a0
lea ecx, [esp + 0x30]
call fcn.0041e870
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.00503137
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00416bf0
lea edx, [esp + 0x28]
push edx
push esi
xor ecx, ecx
mov edx, edi
call fcn.0041c3a0
lea ecx, [esp + 0x28]
call fcn.0041ef40
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.00503137
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00416bf0
lea edx, [esp + 0x18]
push edx
push esi
xor ecx, ecx
mov edx, edi
call fcn.0041c3a0
push 0
lea ecx, [esp + 0x1c]
call fcn.0041ecb0
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.00503137
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00416bf0
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.00402b40
mov byte [esp + 0x44], 2
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.00402b40
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebx
call fcn.00402b40
mov eax, dword [esp + 0x4c]
jmp 0x41f324