Function at 0x4051b9
Capabilities:
Capture screenshot

Disassembly:
mov eax, 0x565de0
call fcn.00524444
mov eax, 0x105c
call fcn.00524e70
push ebx
push esi
push edi
push 8
call fcn.005444b9
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x4051ec
mov dword [eax + 4], ebx
mov dword [eax], 0x57b0a0
mov dword [ebp - 0x10], eax
jmp 0x4051ef
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
je 0x405522
push dword [ebp + 8]
lea ecx, [ebp - 0x1068]
call fcn.00404989
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x1068]
push eax
call fcn.00407720
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.0053c473
push str..ico
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call fcn.00524e9f
mov edi, eax
pop ecx
neg edi
sbb edi, edi
pop ecx
inc edi
call fcn.0055c7c5
mov eax, dword [eax + 4]
push 0x10
push ebx
push ebx
push edi
push dword [ebp + 8]
push dword [eax + 0x68]
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
cmp esi, ebx
je 0x405271
push 8
push dword [esi + 4]
push dword [esi]
push edi
push eax
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 8], eax
jmp 0x4052c8
push 1
mov esi, 0x622cd8
pop ecx
cmp edi, ecx
jne 0x4052ab
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x40529a
lea eax, [ebp - 0x48]
push eax
push 0x18
push dword [ebp - 0x50]
jmp 0x4052b2
push 0x18
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00524810
add esp, 0xc
jmp 0x4052b8
lea ecx, [ebp - 0x48]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x44]
mov dword [0x622cd8], eax
mov eax, dword [ebp - 0x40]
mov dword [0x622cdc], eax
call fcn.00401e47
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call fcn.005474dc
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x4054eb
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00548075
cmp eax, ebx
je 0x4054d7
lea ecx, [ebp - 0x58]
call fcn.0054743a
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0054743a
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 3
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x40]
call fcn.005474f1
cmp eax, ebx
je 0x405486
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
push dword [ebp - 0x3c]
call fcn.00547632
push 0xf
mov dword [ebp - 0x30], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
call fcn.005476cb
cmp edi, ebx
jne 0x40542d
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x58]
call fcn.005474f1
cmp eax, ebx
je 0x405475
cmp dword [ebp + 8], ebx
je 0x40539d
push dword [ebp + 8]
push dword [ebp - 0x54]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x20], eax
jmp 0x4053a0
mov dword [ebp - 0x20], ebx
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x58]
mov edx, dword [esi]
push 0xcc0020
neg eax
sbb eax, eax
push ebx
and eax, dword [ebp - 0x54]
push ebx
push eax
push ecx
push edx
push ebx
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [sym.imp.GDI32.dll_GetPixel]
push ebx
push ebx
push dword [ebp - 0x3c]
call edi
cmp dword [esi + 4], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ebx
jle 0x40541a
cmp dword [esi], ebx
mov dword [ebp + 0xc], ebx
jle 0x40540f
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call edi
cmp eax, dword [ebp - 0x24]
jne 0x405405
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_SetPixelV]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi]
jl 0x4053e3
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
jl 0x4053dc
cmp dword [ebp - 0x20], ebx
je 0x405475
push dword [ebp - 0x20]
push dword [ebp - 0x54]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x405475
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.00548132
lea eax, [ebp - 0x28]
push 3
neg eax
sbb eax, eax
lea ecx, [ebp - 0x40]
and eax, dword [ebp - 0x24]
neg ecx
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
sbb ecx, ecx
and ecx, dword [ebp - 0x3c]
push ebx
push ebx
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov dword [ebp - 0x28], vtable.CGdiObject.0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.005480cc
mov byte [ebp - 4], 3
cmp dword [ebp - 0x30], ebx
je 0x405486
push dword [ebp - 0x30]
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.00401e47
mov ecx, dword [ebp - 0x18]
push dword [ecx + 4]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0054756f
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0054756f
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.0053c49c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0053eb4f
mov eax, dword [ebp - 0x10]
jmp 0x405524
call fcn.00401e47
mov ecx, dword [ebp - 0x18]
push dword [ecx + 4]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp + 8]
cmp edi, 1
jne 0x4054fb
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x405501
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x10]
push 1
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.0053c49c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0053eb4f
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret