Function at 0x416760
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
mov eax, dword [esp + 0x58]
push ebp
mov ecx, dword [esp + 0x54]
push eax
mov edx, dword [esp + 0x54]
push ecx
mov dword [esp + 0x2c], esi
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
call fcn.00416c40
mov dword [esp + 0x38], eax
add esp, 0xc
cmp eax, esi
je 0x416b86
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], esi
push eax
mov dword [esp + 0x20], esi
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
push esi
mov ebp, dword [sym.imp.USER32.dll_GetDC]
dec dword [esp + 0x3c]
call ebp
mov edi, eax
test edi, edi
je 0x4167fa
mov eax, dword [esp + 0x38]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
inc eax
push eax
mov eax, dword [esp + 0x38]
add eax, 3
push eax
push edi
call ebx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
inc eax
push eax
push ecx
push edi
call ebx
mov dword [esp + 0x1c], eax
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x18], 0
je 0x416b6f
cmp dword [esp + 0x1c], 0
je 0x416b6f
push 0
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call edi
mov esi, eax
test esi, esi
je 0x416b27
push 0
call edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x416b14
mov eax, dword [esp + 0x18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x28], eax
test eax, eax
je 0x416afa
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x48], eax
test eax, eax
je 0x416ae4
push 0xff00
push esi
call dword [sym.imp.GDI32.dll_GetNearestColor]
mov edi, eax
push 0xffffff
push esi
xor ebp, ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
push edi
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebx, dword [esp + 0x34]
cmp dword [esp + 0x38], ebp
jl 0x4168b9
push 0
push ebp
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetPixel]
push 0xffffff
lea eax, [ebx + 1]
push ebp
push eax
push esi
inc ebp
call dword [sym.imp.GDI32.dll_SetPixel]
cmp dword [esp + 0x38], ebp
jge 0x416896
mov eax, dword [esp + 0x14]
push 0xcc0020
mov ecx, dword [esp + 0x3c]
push 0
mov edx, dword [esp + 0x3c]
push 0
push eax
push ecx
push edx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x416aca
push 4
xor ebx, ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [sym.imp.GDI32.dll_ExtFloodFill]
cmp dword [esp + 0x34], ebx
jle 0x416928
push 0
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, edi
jne 0x416921
push 1
push edi
push 0
push ebx
push esi
call ebp
mov dword [esp + 0x20], 1
inc ebx
cmp dword [esp + 0x34], ebx
jg 0x416902
xor ebx, ebx
cmp dword [esp + 0x38], ebx
jle 0x41696e
mov eax, dword [esp + 0x34]
push ebx
dec eax
push eax
push esi
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, edi
jne 0x416967
mov eax, dword [esp + 0x34]
push 1
push edi
dec eax
push ebx
push eax
push esi
call ebp
mov eax, dword [esp + 0x34]
push 0
push ebx
dec eax
mov dword [esp + 0x28], 1
push eax
push esi
call dword [sym.imp.GDI32.dll_SetPixel]
inc ebx
cmp dword [esp + 0x38], ebx
jg 0x416930
xor ebx, ebx
cmp dword [esp + 0x34], ebx
jle 0x4169a4
mov eax, dword [esp + 0x38]
dec eax
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, edi
jne 0x41699d
mov eax, dword [esp + 0x38]
push 1
push edi
dec eax
push eax
push ebx
push esi
call ebp
mov dword [esp + 0x20], 1
inc ebx
cmp dword [esp + 0x34], ebx
jg 0x416976
xor ebx, ebx
cmp dword [esp + 0x38], ebx
jle 0x4169d2
push ebx
push 0
push esi
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, edi
jne 0x4169cb
push 1
push edi
push ebx
push 0
push esi
call ebp
mov dword [esp + 0x20], 1
inc ebx
cmp dword [esp + 0x38], ebx
jg 0x4169ac
mov eax, dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x20], 0
je 0x416abe
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14]
push 0xcc0020
mov edx, dword [esp + 0x3c]
push 0
mov eax, dword [esp + 0x3c]
push 0
push ecx
push edx
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x28]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x1c]
push 0
push 8
push 0x8000
push ecx
call fcn.00415a80
mov dword [esp + 0x34], eax
add esp, 0x10
test eax, eax
je 0x416aca
push eax
call fcn.00417010
add esp, 4
mov edi, eax
test edi, edi
je 0x416aca
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, dword [eax]
push eax
add ebx, eax
call fcn.004158b0
add esp, 4
test eax, eax
jle 0x416aaf
dec eax
js 0x416aaf
lea edx, [ebx + eax*4]
mov ecx, dword [esp + 0x60]
cmp ecx, 0xffffff
jne 0x416a95
test dword [edx], 0xffffff
je 0x416aa9
jmp 0x416aa3
test dword [edx], 0xffffff
mov dword [edx], 0
jne 0x416aa9
mov dword [edx], 0xffffff
sub edx, 4
dec eax
jns 0x416a83
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x58]
mov dword [eax], edi
jmp 0x416ad2
mov eax, dword [esp + 0x58]
mov dword [eax], 0
jmp 0x416ad2
mov dword [esp + 0x10], 8
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x416aec
mov dword [esp + 0x10], 8
mov eax, dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x416b02
mov dword [esp + 0x10], 8
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
push eax
call edi
push esi
call edi
jmp 0x416b2f
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
push esi
mov dword [esp + 0x14], 8
call edi
jmp 0x416b2f
mov dword [esp + 0x10], 8
cmp dword [esp + 0x18], 0
je 0x416b45
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
jmp 0x416b4b
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x1c], 0
je 0x416b59
mov eax, dword [esp + 0x1c]
push eax
call esi
cmp dword [esp + 0x24], 0
je 0x416b7d
mov eax, dword [esp + 0x24]
push eax
call fcn.00488e40
add esp, 4
jmp 0x416b7d
mov dword [esp + 0x10], 8
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x2c]
push eax
call esi
jmp 0x416b8e
mov dword [esp + 0x10], 8
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret