Function at 0x4fa860
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x580380
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eabd8]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x98]
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x4fa8a2
mov byte [esp + 0x1c], bl
jmp 0x4fa8b7
cmp dword [eax + 8], ebx
jne 0x4fa8b2
mov byte [esp + 0x20], 1
mov byte [esp + 0x1c], bl
jmp 0x4fa8bb
mov byte [esp + 0x1c], 1
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0x94]
mov esi, dword [sym.imp.USER32.dll_CopyRect]
push eax
lea ecx, [esp + 0x70]
push ecx
call esi
mov edx, dword [esp + 0x90]
push edx
lea eax, [esp + 0x50]
push eax
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esp + 0x44], eax
call fcn.0047f8e9
lea ecx, [esp + 0x5c]
mov esi, eax
call fcn.0047f24e
mov dword [esp + 0x84], ebx
cmp esi, ebx
jne 0x4fa910
xor eax, eax
jmp 0x4fa913
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x60]
call fcn.0047f8fd
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], vtable.CBitmap.0
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
push eax
push ecx
mov ecx, dword [esi + 4]
push ecx
mov byte [esp + 0x90], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x48]
call fcn.0047fbcf
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x60]
push edx
push eax
call fcn.0047fcae
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x54]
push 0xcc0020
push edx
push edi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
push esi
sub eax, edx
push eax
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x78]
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
sub edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
lea edx, [eax - 5]
dec eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x90], 3
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0xfffffffd
mov dword [esp + 0x24], 0xc
dec edi
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], 4
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x60]
push esi
push eax
push edi
push ecx
call fcn.004f1870
mov ecx, dword [esp + 0xa8]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0xa8]
push ecx
push esi
push ebx
push eax
push edx
push edi
push ebp
call fcn.004f6750
mov eax, 1
add dword [esp + 0xc4], eax
add esp, 0x30
sub dword [esp + 0x8c], eax
jne 0x4faa08
mov eax, dword [esp + 0x24]
mov dword [esp + 0x94], 7
mov dword [esp + 0x8c], eax
mov dword [esp + 0x20], 4
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x60]
push esi
push ecx
push edi
push edx
call fcn.004f1870
add esp, 0x10
cmp dword [esp + 0x9c], 2
jne 0x4faabb
mov ecx, dword [esp + 0x70]
lea edx, [ecx - 1]
mov ecx, dword [esp + 0x94]
cmp ecx, edx
jl 0x4faabb
cmp ecx, dword [esp + 0x78]
jg 0x4faabb
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x9c]
push edx
push esi
push ebx
jmp 0x4faae3
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push esi
push ebx
push eax
mov eax, dword [esp + 0xa0]
push eax
call fcn.004f1800
mov ecx, dword [esp + 0xa4]
push eax
push ecx
push edi
push ebp
call fcn.004f6750
mov edx, dword [esp + 0x48]
add dword [esp + 0xac], edx
mov eax, 1
sub dword [esp + 0xb4], eax
add esp, 0x20
sub dword [esp + 0x20], eax
jne 0x4faa71
mov eax, 8
cmp dword [esp + 0x30], eax
mov dword [esp + 0x94], eax
jl 0x4fabb8
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x60]
push esi
push eax
push edi
push ecx
call fcn.004f1870
add esp, 0x10
cmp dword [esp + 0x9c], 2
jne 0x4fab6e
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x94]
dec edx
cmp ecx, edx
jl 0x4fab6e
cmp ecx, dword [esp + 0x78]
jg 0x4fab6e
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x9c]
push edx
push esi
push ebx
jmp 0x4fab93
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push esi
push ebx
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.004f1800
mov ecx, dword [esp + 0xa4]
push eax
push ecx
push edi
push ebp
call fcn.004f6750
mov eax, dword [esp + 0xb4]
inc eax
add esp, 0x20
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x94], eax
jle 0x4fab26
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x20], 4
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x60]
push esi
push ecx
push edi
push edx
call fcn.004f1870
mov edx, dword [esp + 0xa8]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push esi
push ebx
push eax
mov eax, dword [esp + 0xa0]
push eax
call fcn.004f1800
mov ecx, dword [esp + 0xa4]
push eax
push ecx
push edi
push ebp
call fcn.004f6750
mov edx, dword [esp + 0xb0]
add dword [esp + 0xac], edx
mov eax, 1
sub dword [esp + 0xb4], eax
add esp, 0x20
sub dword [esp + 0x20], eax
jne 0x4fabd9
mov eax, dword [esp + 0x24]
add dword [esp + 0x2c], 0xf
mov ecx, 3
sub dword [esp + 0x28], ecx
add dword [esp + 0x90], ecx
add eax, 0xc
dec edi
cmp eax, 0x30
mov dword [esp + 0x24], eax
jle 0x4fa9f2
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
add eax, 0xfffffffb
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x8c], 0xfffffffd
jmp 0x4faca0
mov dword [esp + 0x94], 3
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x60]
push esi
push edi
push ecx
push edx
call fcn.004f1870
mov edx, dword [esp + 0xa8]
lea ecx, [esp + 0x24]
push ecx
push edx
push esi
push ebx
push eax
mov eax, dword [esp + 0xb8]
push edi
push eax
push ebp
call fcn.004f6750
add esp, 0x30
sub dword [esp + 0x94], 1
jns 0x4facab
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ecx
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x60]
push esi
push edi
push edx
push eax
call fcn.004f1870
add esp, 0x10
cmp dword [esp + 0x9c], 1
jne 0x4fad4b
mov ecx, dword [esp + 0x6c]
lea edx, [ecx - 1]
mov ecx, dword [esp + 0x94]
cmp ecx, edx
jl 0x4fad4b
cmp ecx, dword [esp + 0x74]
jg 0x4fad4b
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x9c]
push edx
push esi
push ebx
jmp 0x4fad73
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push esi
push ebx
push eax
mov eax, dword [esp + 0xa4]
push eax
call fcn.004f1800
mov ecx, dword [esp + 0xa4]
push eax
push edi
push ecx
push ebp
call fcn.004f6750
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0xac]
add dword [esp + 0xb0], edx
dec eax
add esp, 0x20
cmp eax, 4
mov dword [esp + 0x94], eax
jge 0x4fad01
mov eax, 8
cmp dword [esp + 0x30], eax
mov dword [esp + 0x94], eax
jl 0x4fae4d
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x60]
push esi
push edi
push eax
push ecx
call fcn.004f1870
add esp, 0x10
cmp dword [esp + 0x9c], 1
jne 0x4fae03
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x94]
dec edx
cmp ecx, edx
jl 0x4fae03
cmp ecx, dword [esp + 0x74]
jg 0x4fae03
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x9c]
push edx
push esi
push ebx
jmp 0x4fae28
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push esi
push ebx
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.004f1800
mov ecx, dword [esp + 0xa4]
push eax
push edi
push ecx
push ebp
call fcn.004f6750
mov eax, dword [esp + 0xb4]
inc eax
add esp, 0x20
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x94], eax
jle 0x4fadbb
mov eax, dword [esp + 0x8c]
add dword [esp + 0x2c], 0xc
add dword [esp + 0x28], 0xf
sub eax, 3
dec edi
cmp eax, 0xfffffff4
mov dword [esp + 0x8c], eax
jge 0x4faca0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4fae7d
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x60]
push eax
push edx
call fcn.0047fcae
lea ecx, [esp + 0x44]
call fcn.0047fc27
mov eax, dword [esp + 0x40]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x44]
mov byte [esp + 0x84], 0
mov dword [esp + 0x44], vtable.CBitmap.0
call fcn.0041e040
lea ecx, [esp + 0x5c]
mov dword [esp + 0x84], 0xffffffff
call fcn.0047f97c
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x14