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

Disassembly:
push 0xffffffffffffffff
push 0x59d218
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
xor esi, esi
cmp eax, esi
je 0x4f9623
lea ecx, [esp + 0x68]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x6c]
mov ebp, dword [esp + 0xb0]
cmp ecx, ebp
mov edx, dword [esp + 0x70]
mov dword [esp + 0x30], ecx
mov ebx, edx
jne 0x4f929a
cmp edx, dword [esp + 0xb4]
jne 0x4f929a
sub esp, 0x10
mov eax, esp
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xa0]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0xa4]
push edi
push edx
call fcn.004f90a0
add esp, 0x18
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov eax, ebp
sub eax, ecx
add eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa8]
mov dword [ecx], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xac]
sub eax, edx
add eax, dword [esp + 0xa4]
mov dword [esp + 0x18], esi
mov dword [ecx], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], esi
call fcn.0055b050
mov dword [esp + 0x88], esi
mov esi, dword [esp + 0x90]
test esi, esi
jne 0x4f92ee
xor eax, eax
jmp 0x4f92f1
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x4c]
call fcn.0055b566
mov edi, dword [edi + 4]
test edi, edi
je 0x4f9315
mov edx, dword [esp + 0x4c]
push edi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x38]
call fcn.0055b050
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], vtable.CBitmap.0
cmp ebp, dword [esp + 0x30]
mov byte [esp + 0x88], 2
je 0x4f942a
mov eax, dword [esi + 4]
push ebx
push ebp
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x24]
call fcn.0055b82d
test eax, eax
jne 0x4f9360
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea ecx, [esp + 0x3c]
call fcn.00404730
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4f937e
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x98]
mov eax, dword [esp + 0x3c]
push 0xcc0020
push 0
push 0
push edx
push ebx
push edi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov esi, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx]
sub esi, edi
sub eax, edi
cmp esi, eax
jle 0x4f93be
mov esi, eax
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
push 0xcc0020
push 0
push edx
push eax
push ebx
push esi
push 0
push edi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0xa8]
mov eax, dword [edx]
add edi, esi
cmp edi, eax
jl 0x4f93b6
mov ecx, dword [esp + 0x9c]
push 0xcc0020
push 0
push ecx
mov eax, edx
mov eax, dword [eax]
lea edx, [esp + 0x54]
push edx
push ebx
mov ecx, ebp
sub ecx, eax
push ecx
push 0
push eax
lea ecx, [esp + 0x58]
call fcn.004046e0
mov esi, dword [esp + 0x90]
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x58]
call fcn.0055b050
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], vtable.CBitmap.0
mov byte [esp + 0x88], 4
mov eax, dword [esp + 0xb4]
cmp eax, ebx
je 0x4f9557
mov edx, dword [esi + 4]
push eax
push ebp
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x2c]
call fcn.0055b82d
test eax, eax
jne 0x4f947a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea ecx, [esp + 0x5c]
call fcn.00404730
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4f9498
push eax
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x18], 0
lea ebx, [esp + 0x38]
jne 0x4f94a7
lea ebx, [esp + 0x48]
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x5c]
push 0xcc0020
push 0
push 0
push eax
push edi
push ebp
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov esi, dword [esp + 0xa4]
mov edx, dword [esp + 0xac]
mov eax, dword [edx]
sub esi, edi
mov edi, edi
sub eax, edi
cmp esi, eax
jle 0x4f94e8
mov esi, eax
mov ecx, dword [esp + 0xa0]
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x5c]
push 0xcc0020
push ecx
push 0
push eax
push esi
push ebp
push edi
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0xac]
mov eax, dword [eax]
add edi, esi
cmp edi, eax
jl 0x4f94e0
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xac]
mov eax, dword [ecx]
mov ebx, dword [ebx + 4]
mov ecx, dword [esp + 0xb4]
push 0xcc0020
push edx
push 0
push ebx
sub ecx, eax
push ecx
push ebp
push eax
mov eax, dword [esp + 0x78]
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x38]
call fcn.0055b5ca
lea ecx, [esp + 0x58]
call fcn.0055b5ca
lea ecx, [esp + 0x48]
call fcn.0055b5ca
cmp dword [esp + 0x1c], 0
je 0x4f95a1
lea ecx, [esp + 0x28]
call fcn.0055b856
mov ecx, dword [esp + 0x94]
push eax
call fcn.0055b82d
cmp dword [esp + 0x18], 0
je 0x4f95be
lea ecx, [esp + 0x20]
call fcn.0055b880
jmp 0x4f95be
cmp dword [esp + 0x18], 0
je 0x4f95be
lea ecx, [esp + 0x20]
call fcn.0055b856
mov ecx, dword [esp + 0x94]
push eax
call fcn.0055b82d
mov byte [esp + 0x88], 3
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.0055b880
lea ecx, [esp + 0x58]
mov byte [esp + 0x88], 2
call fcn.0055b5e0
mov byte [esp + 0x88], 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.0055b880
lea ecx, [esp + 0x38]
mov byte [esp + 0x88], 0
call fcn.0055b5e0
lea ecx, [esp + 0x48]
mov dword [esp + 0x88], 0xffffffff
call fcn.0055b5e0
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret