Function at 0x401960
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x48
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebp, eax
test ebp, ebp
jne 0x401990
push str.Fail_to_identify_the_window_device_context
push eax
call fcn.00403400
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov ecx, dword [0x4108ec]
push 0x6d
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
mov dword [0x410900], eax
jne 0x4019c0
push str.Fail_to_load_the_cursor_image
push eax
call fcn.00403400
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov eax, dword [0x40c030]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
push ebp
jne 0x401a26
call esi
test eax, eax
mov dword [0x4108a0], eax
je 0x401a0d
push ebp
call esi
test eax, eax
mov dword [0x4108b8], eax
je 0x401a0d
push ebp
call esi
test eax, eax
mov dword [0x410924], eax
je 0x401a0d
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
test eax, eax
mov dword [0x410adc], eax
jne 0x401a31
push str.Fail_to_create_the_window_device_context
push 0
call fcn.00403400
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
call esi
test eax, eax
mov dword [0x410aec], eax
je 0x401a0d
push ebp
call esi
test eax, eax
mov dword [0x4108d4], eax
je 0x401a0d
push ebp
call esi
test eax, eax
mov dword [0x4108a8], eax
je 0x401a0d
mov eax, dword [0x40c030]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
jne 0x401af6
mov edx, dword [0x4108ac]
mov eax, dword [0x410ad0]
push edx
push eax
push ebp
call ebx
test eax, eax
mov dword [0x410ae8], eax
je 0x401c97
mov ecx, dword [0x4108ac]
mov edx, dword [0x410ad0]
push ecx
push edx
push ebp
call ebx
test eax, eax
mov dword [0x410928], eax
je 0x401c97
mov eax, dword [0x4108ac]
mov ecx, dword [0x410ad0]
push 0
push 1
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateBitmap]
test eax, eax
mov dword [0x41092c], eax
je 0x401c97
mov edx, dword [0x410ae8]
mov eax, dword [0x4108a0]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
call esi
mov ecx, dword [0x410928]
mov edx, dword [0x4108b8]
push ecx
push edx
call esi
mov eax, dword [0x41092c]
mov ecx, dword [0x410924]
push eax
push ecx
call esi
jmp 0x401c7e
mov edx, dword [0x4108ec]
push 0x6b
push edx
call dword [sym.imp.USER32.dll_LoadBitmapA]
test eax, eax
mov dword [0x410934], eax
je 0x401db3
lea ecx, [esp + 0x10]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x401db3
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, esi
mov dword [0x410908], esi
cdq
idiv dword [0x410ad0]
mov dword [0x410930], ecx
mov edi, eax
mov eax, ecx
cdq
idiv dword [0x4108ac]
mov edx, dword [0x4104e0]
mov dword [0x4108f8], edi
mov dword [0x4108fc], eax
imul eax, edi
cmp eax, dword [edx + 0x54]
jge 0x401b82
push str.Unexpected_error:_Data_error_in_bitmap_image
push 0
call fcn.00403400
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
lea eax, [esi + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
imul ecx, eax
push ecx
mov dword [0x4108dc], eax
call fcn.004033c0
mov edi, eax
add esp, 4
test edi, edi
mov dword [0x4108d8], edi
je 0x401a1c
mov ecx, dword [0x410930]
xor eax, eax
imul ecx, dword [0x4108dc]
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x2c]
and ecx, 3
push edx
rep stosb byte es:[edi], al
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x30]
mov edx, dword [0x410934]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [0x4108d8]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x410930]
push eax
mov eax, dword [0x410aec]
push ecx
push 0
mov edi, 1
push edx
push eax
mov dword [esp + 0x44], 0x28
mov word [esp + 0x50], di
mov word [esp + 0x52], di
mov dword [esp + 0x54], 0
call dword [sym.imp.GDI32.dll_GetDIBits]
mov ecx, dword [0x410934]
mov edx, dword [0x410aec]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
call esi
mov al, byte [esp + 0x50]
test al, al
jne 0x401c78
mov al, byte [esp + 0x51]
test al, al
jne 0x401c78
mov al, byte [esp + 0x52]
mov dword [0x4104bc], 0
test al, al
je 0x401c7e
mov dword [0x4104bc], edi
mov eax, dword [0x4108ac]
mov ecx, dword [0x410ad0]
push eax
push ecx
push ebp
call ebx
test eax, eax
mov dword [0x41090c], eax
jne 0x401cb0
push str.Insufficient_memory_to_create_bitmap_image
push 0
call fcn.00403400
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov edx, dword [0x4108ec]
push 0x67
push edx
call dword [sym.imp.USER32.dll_LoadBitmapA]
test eax, eax
mov dword [0x410ad4], eax
je 0x401db3
lea ecx, [esp + 0x10]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x401db3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [0x410920], eax
mov dword [0x4108d0], ecx
cdq
idiv dword [0x410ad0]
mov edi, eax
mov eax, ecx
cdq
idiv dword [0x4108ac]
mov edx, dword [0x4104e0]
mov dword [0x4108f0], edi
mov dword [0x4108f4], eax
imul eax, edi
cmp eax, dword [edx + 0x54]
jge 0x401d39
push str.Unexpected_error:_Data_error_in_bitmap_image
push 0
call fcn.00403400
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov eax, dword [0x41090c]
mov ecx, dword [0x4108d4]
push eax
push ecx
call esi
mov edx, dword [0x410ad4]
mov eax, dword [0x4108a8]
push edx
push eax
call esi
mov ecx, dword [esp + 0x5c]
push ebp
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [0x4108ec]
push 0x69
push edx
call dword [sym.imp.USER32.dll_LoadMenuA]
test eax, eax
mov dword [0x410918], eax
je 0x401d9a
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
test eax, eax
mov dword [0x410918], eax
je 0x401d9a
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
push str.Insufficient_memory_to_load_pop_up_menu
push 0
call fcn.00403400
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
push str.Insufficient_memory_to_load_bitmap_image
push 0
call fcn.00403400
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret