Function at 0x401810
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 0x401840
push str.Fail_to_identify_the_window_device_context
push eax
call fcn.00403430
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov ecx, dword [0x4111cc]
push 0x6d
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
mov dword [0x4111e0], eax
jne 0x401870
push str.Fail_to_load_the_cursor_image
push eax
call fcn.00403430
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov eax, dword [0x40d030]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
push ebp
jne 0x4018d6
call esi
test eax, eax
mov dword [0x411188], eax
je 0x4018bd
push ebp
call esi
test eax, eax
mov dword [0x41119c], eax
je 0x4018bd
push ebp
call esi
test eax, eax
mov dword [0x411204], eax
je 0x4018bd
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
test eax, eax
mov dword [0x4113bc], eax
jne 0x4018e1
push str.Fail_to_create_the_window_device_context
push 0
call fcn.00403430
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret
call esi
test eax, eax
mov dword [0x4113c8], eax
je 0x4018bd
push ebp
call esi
test eax, eax
mov dword [0x4111b4], eax
je 0x4018bd
push ebp
call esi
test eax, eax
mov dword [0x411190], eax
je 0x4018bd
mov eax, dword [0x40d030]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
jne 0x4019a6
mov edx, dword [0x411194]
mov eax, dword [0x4113b0]
push edx
push eax
push ebp
call ebx
test eax, eax
mov dword [0x4113c4], eax
je 0x401b47
mov ecx, dword [0x411194]
mov edx, dword [0x4113b0]
push ecx
push edx
push ebp
call ebx
test eax, eax
mov dword [0x411208], eax
je 0x401b47
mov eax, dword [0x411194]
mov ecx, dword [0x4113b0]
push 0
push 1
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateBitmap]
test eax, eax
mov dword [0x41120c], eax
je 0x401b47
mov edx, dword [0x4113c4]
mov eax, dword [0x411188]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
call esi
mov ecx, dword [0x411208]
mov edx, dword [0x41119c]
push ecx
push edx
call esi
mov eax, dword [0x41120c]
mov ecx, dword [0x411204]
push eax
push ecx
call esi
jmp 0x401b2e
mov edx, dword [0x4111cc]
push 0x6b
push edx
call dword [sym.imp.USER32.dll_LoadBitmapA]
test eax, eax
mov dword [0x411214], eax
je 0x401c63
lea ecx, [esp + 0x10]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x401c63
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, ecx
mov dword [0x4111e8], ecx
cdq
idiv dword [0x4113b0]
mov dword [0x411210], esi
mov edi, eax
mov eax, esi
cdq
idiv dword [0x411194]
mov edx, dword [0x410ef8]
mov dword [0x4111d8], edi
mov dword [0x4111dc], eax
imul eax, edi
cmp eax, dword [edx + 0x54]
jge 0x401a32
push str.Unexpected_error:_Data_error_in_bitmap_image
push 0
call fcn.00403430
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
lea eax, [ecx + 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
mov dword [0x4111bc], eax
imul eax, esi
push eax
call fcn.004033f0
mov edi, eax
add esp, 4
test edi, edi
mov dword [0x4111b8], edi
je 0x4018cc
mov ecx, dword [0x4111bc]
xor eax, eax
imul ecx, dword [0x411210]
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 [0x411214]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [0x4111b8]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x411210]
push eax
mov eax, dword [0x4113c8]
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 [0x411214]
mov edx, dword [0x4113c8]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
call esi
mov al, byte [esp + 0x50]
test al, al
jne 0x401b28
mov al, byte [esp + 0x51]
test al, al
jne 0x401b28
mov al, byte [esp + 0x52]
mov dword [0x410ed4], 0
test al, al
je 0x401b2e
mov dword [0x410ed4], edi
mov eax, dword [0x411194]
mov ecx, dword [0x4113b0]
push eax
push ecx
push ebp
call ebx
test eax, eax
mov dword [0x4111ec], eax
jne 0x401b60
push str.Insufficient_memory_to_create_bitmap_image
push 0
call fcn.00403430
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov edx, dword [0x4111cc]
push 0x67
push edx
call dword [sym.imp.USER32.dll_LoadBitmapA]
test eax, eax
mov dword [0x4113b4], eax
je 0x401c63
lea ecx, [esp + 0x10]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x401c63
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [0x411200], eax
mov dword [0x4111b0], ecx
cdq
idiv dword [0x4113b0]
mov edi, eax
mov eax, ecx
cdq
idiv dword [0x411194]
mov edx, dword [0x410ef8]
mov dword [0x4111d0], edi
mov dword [0x4111d4], eax
imul eax, edi
cmp eax, dword [edx + 0x54]
jge 0x401be9
push str.Unexpected_error:_Data_error_in_bitmap_image
push 0
call fcn.00403430
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov eax, dword [0x4111ec]
mov ecx, dword [0x4111b4]
push eax
push ecx
call esi
mov edx, dword [0x4113b4]
mov eax, dword [0x411190]
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 [0x4111cc]
push 0x69
push edx
call dword [sym.imp.USER32.dll_LoadMenuA]
test eax, eax
mov dword [0x4111f8], eax
je 0x401c4a
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
test eax, eax
mov dword [0x4111f8], eax
je 0x401c4a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret
push str.Insufficient_memory_to_load_pop_up_menu
push 0
call fcn.00403430
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.00403430
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret