Function at 0x40b2c0
Capabilities:
Capture screenshot

Disassembly:
push esi
push edi
push ebp
sub esp, 0x64
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
test byte [edx + 0x20], 4
je 0x40b2e1
add esp, 0x64
pop ebp
pop edi
pop esi
ret 8
push 0
push eax
call dword [sym.imp.USER32.DLL_GetWindowLongA]
mov ebp, eax
mov eax, dword [esp + 0x4c]
test byte [eax + 0x20], 1
je 0x40b5d7
cmp word [eax + 0x24], 1
sete al
mov byte [esp + 0x58], al
xor edx, edx
mov dword [esp + 0x44], edx
cmp byte [esp + 0x58], 0
je 0x40b31b
mov dword [esp + 0x44], 2
xor bh, bh
mov byte [esp + 0x5c], bh
mov byte [esp + 0x54], bh
cmp dword [esp + 0x50], 0
jne 0x40b5e0
mov eax, dword [esp + 0x48]
push eax
mov byte [esp + 0x60], 1
call dword [sym.imp.USER32.DLL_GetDC]
mov dword [esp + 0x50], eax
lea ebx, [esp + 0x78]
mov eax, dword [esp + 0x50]
mov edx, dword [0x41ac4c]
mov byte [esp + 0x54], 1
call fcn.00410210
mov dword [esp + 0x74], eax
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
mov ebx, dword [esp + 0x58]
push ebx
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
push eax
mov esi, dword [esp + 0x78]
push esi
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.DLL_SelectObject]
push ebx
mov edi, ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov ebx, eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov ecx, edi
push ecx
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.DLL_SelectObject]
mov ebx, dword [0x41ac54]
mov dword [esp + 0x34], eax
cmp byte [esp + 0x58], 0
je 0x40b3cd
mov esi, dword [ebp + 0x28]
test esi, esi
je 0x40b3cd
mov ebx, esi
mov eax, dword [esp + 0x4c]
push ebx
add eax, 8
push eax
mov edi, dword [esp + 0x7c]
push edi
call dword [sym.imp.USER32.DLL_FillRect]
lea edi, [esp + 0x18]
lea esi, [ebp + 0x10]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc eax
sub dword [esp + 0x18], 4
sub dword [esp + 0x1c], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edx, dword [edx + 4]
cmp byte [esp + 0x58], 0
je 0x40b41c
mov eax, dword [esp + 0x4c]
test byte [eax + 0x20], 2
je 0x40b41c
mov edx, dword [eax + 0x18]
push edx
mov ecx, dword [esp + 0x18]
push ecx
mov esi, dword [esp + 0x18]
push esi
mov edi, dword [esp + 0x28]
push edi
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x88]
call fcn.0040b160
push edx
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.GDI32.DLL_SelectObject]
push 0
push 0
mov ecx, dword [esp + 0x40]
push ecx
mov esi, eax
call dword [sym.imp.GDI32.DLL_GetPixel]
push esi
mov esi, dword [esp + 0x3c]
push esi
mov edi, eax
call dword [sym.imp.GDI32.DLL_SelectObject]
push 0xf
call dword [sym.imp.USER32.DLL_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.DLL_SetBkColor]
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp], edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.USER32.DLL_FillRect]
push edi
mov esi, dword [esp + 0x78]
mov ebx, dword [esp + 0x18]
push esi
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
call fcn.0040bff0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40b4d7
push eax
push esi
mov ebx, dword [esp + 0x44]
call dword [sym.imp.GDI32.DLL_SelectObject]
push ebx
call dword [sym.imp.GDI32.DLL_DeleteObject]
cmp byte [esp + 0x54], 0
je 0x40b4e9
mov esi, dword [esp + 0x74]
push esi
call dword [sym.imp.GDI32.DLL_DeleteDC]
mov ebx, dword [esp + 0x38]
push 1
mov eax, dword [ebp + 0x14]
mov byte [esp + 0x64], 1
push eax
mov edx, dword [ebp + 0x10]
mov esi, dword [esp + 0x38]
push edx
mov eax, ebx
mov edi, dword [esp + 0x40]
call fcn.0040afa0
cmp byte [esp + 0x58], 0
je 0x40b5fb
mov ecx, dword [0x41ac64]
push ecx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, ebx
call fcn.0040ad30
mov ecx, dword [0x41ac6c]
push ecx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, ebx
call fcn.0040add0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [eax + 0x10]
push edx
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [eax + 8]
push edx
call fcn.00410340
push 0xcc0020
push 0
push 0
push ebx
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esp + 0x44]
push edx
mov ecx, dword [esp + 0x44]
push ecx
mov ebp, dword [esp + 0x70]
push ebp
call dword [sym.imp.GDI32.DLL_BitBlt]
push edi
push ebx
call dword [sym.imp.GDI32.DLL_SelectObject]
cmp byte [esp + 0x5c], 0
je 0x40b5b5
push ebp
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.USER32.DLL_ReleaseDC]
push esi
call dword [sym.imp.GDI32.DLL_DeleteObject]
cmp byte [esp + 0x60], 0
je 0x40b2d8
push ebx
call dword [sym.imp.GDI32.DLL_DeleteDC]
add esp, 0x64
pop ebp
pop edi
pop esi
ret 8
mov byte [esp + 0x58], bl
jmp 0x40b306
cmp dword [esp + 0x74], 0
je 0x40b344
cmp dword [esp + 0x78], 0
je 0x40b344
jmp 0x40b360
mov ecx, dword [0x41ac60]
push ecx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, ebx
call fcn.0040ad30
mov ecx, dword [0x41ac64]
push ecx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, ebx
call fcn.0040ae60
mov ecx, dword [0x41ac64]
push ecx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, ebx
call fcn.0040af00
jmp 0x40b546