Function at 0x557774
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, edx
mov dword [ebp - 4], eax
cmp byte [ebx + 0x57], 0
jne 0x55779a
test byte [ebx + 0x1c], 0x10
je 0x557b45
mov eax, ebx
call fcn.0046f4e4
test eax, eax
jle 0x557b45
mov eax, dword [0x5a761c]
mov eax, dword [eax]
cmp byte [eax + 0x10], 0
je 0x557b45
xor eax, eax
push ebp
push 0x557b3e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_GetClipBox
lea eax, [ebp - 0x34]
call fcn.005723c4
test eax, eax
je 0x5577ed
lea eax, [ebp - 0x34]
call fcn.005723e0
test eax, eax
jne 0x5577f7
call fcn.00404508
jmp 0x557b45
mov byte [ebp - 0x1d], 0
mov eax, dword [0x5a7254]
mov byte [eax + 0xc], 0
mov eax, ebx
call fcn.0047285c
mov edx, 5
call fcn.00557b50
mov eax, dword [0x5a7254]
cmp byte [eax + 0xc], 0
jne 0x55782a
call fcn.00404508
jmp 0x557b45
xor edi, edi
mov eax, ebx
call fcn.0046f4e4
mov dword [ebp - 0x10], eax
cmp edi, dword [ebp - 0x10]
jge 0x557a3a
push ebp
mov edx, edi
mov eax, ebx
call fcn.0046f4a8
call fcn.005576f4
pop ecx
test al, al
je 0x557a30
cmp byte [ebp - 0x1d], 0
jne 0x557994
push 0
call sub.user32.dll_GetDC
mov esi, eax
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x48]
push eax
push esi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x18], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x557994
inc eax
mov dword [ebp - 0x24], eax
xor esi, esi
push ebp
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
call fcn.005576f4
pop ecx
test al, al
je 0x55798a
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
test byte [eax + 0x50], 0x40
jne 0x557960
push 0xcc0020
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x44]
mov edx, dword [0x5a7254]
add eax, dword [edx + 8]
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x40]
mov edx, dword [0x5a7254]
add eax, dword [edx + 4]
push eax
mov eax, dword [0x5a7254]
mov eax, dword [eax]
call fcn.0042ecc0
call fcn.0042a314
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x4c]
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x48]
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x44]
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x55798a
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x70]
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
lea edx, [ebp - 0x44]
call fcn.0046b830
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.00575a24
inc esi
dec dword [ebp - 0x24]
jne 0x5578b3
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x44]
push eax
mov edx, edi
mov eax, ebx
call fcn.0046f4a8
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.0046a7cc
mov edx, edi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x4c]
push eax
mov edx, edi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_IntersectClipRect
push 0
mov edx, edi
mov eax, ebx
call fcn.0046f4a8
mov ecx, dword [ebp - 0x14]
mov edx, 0xf
call fcn.0046d06c
mov edx, edi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x44]
neg eax
push eax
mov edx, edi
mov eax, ebx
call fcn.0046f4a8
mov edx, dword [eax + 0x40]
neg edx
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.0046a7cc
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_RestoreDC
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x55783f
cmp byte [ebp - 0x1d], 0
je 0x557b02
xor esi, esi
cmp esi, dword [ebp - 0x10]
jge 0x557b02
push ebp
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
call fcn.005576f4
pop ecx
test al, al
je 0x557af8
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x44]
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_GetPixel
xor edx, edx
cmp edx, 0
jne 0x557a96
cmp eax, 0xff00ff
je 0x557af8
push 0xcc0020
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x44]
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x4c]
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x48]
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x44]
push eax
mov edx, esi
mov eax, ebx
call fcn.0046f4a8
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x557a4f
mov eax, dword [0x5a7254]
mov byte [eax + 0xc], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x557b45
cmp byte [ebp - 0x1d], 0
je 0x557b3d
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4