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 [0x40ff3c]
push 0x6d
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
mov dword [0x40ff50], 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 [0x40fef8], eax
je 0x4018bd
push ebp
call esi
test eax, eax
mov dword [0x40ff0c], eax
je 0x4018bd
push ebp
call esi
test eax, eax
mov dword [0x40ff74], eax
je 0x4018bd
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
test eax, eax
mov dword [0x41013c], 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 [0x410148], eax
je 0x4018bd
push ebp
call esi
test eax, eax
mov dword [0x40ff24], eax
je 0x4018bd
push ebp
call esi
test eax, eax
mov dword [0x40ff00], eax
je 0x4018bd
mov eax, dword [0x40d030]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
jne 0x4019a6
mov edx, dword [0x40ff04]
mov eax, dword [0x410130]
push edx
push eax
push ebp
call ebx
test eax, eax
mov dword [0x410144], eax
je 0x401b47
mov ecx, dword [0x40ff04]
mov edx, dword [0x410130]
push ecx
push edx
push ebp
call ebx
test eax, eax
mov dword [0x40ff78], eax
je 0x401b47
mov eax, dword [0x40ff04]
mov ecx, dword [0x410130]
push 0
push 1
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateBitmap]
test eax, eax
mov dword [0x40ff7c], eax
je 0x401b47
mov edx, dword [0x410144]
mov eax, dword [0x40fef8]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
call esi
mov ecx, dword [0x40ff78]
mov edx, dword [0x40ff0c]
push ecx
push edx
call esi
mov eax, dword [0x40ff7c]
mov ecx, dword [0x40ff74]
push eax
push ecx
call esi
jmp 0x401b2e
mov edx, dword [0x40ff3c]
push 0x6b
push edx
call dword [sym.imp.USER32.dll_LoadBitmapA]
test eax, eax
mov dword [0x40ff84], 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 [0x40ff58], ecx
cdq
idiv dword [0x410130]
mov dword [0x40ff80], esi
mov edi, eax
mov eax, esi
cdq
idiv dword [0x40ff04]
mov edx, dword [0x40fc68]
mov dword [0x40ff48], edi
mov dword [0x40ff4c], 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 [0x40ff2c], eax
imul eax, esi
push eax
call fcn.004033f0
mov edi, eax
add esp, 4
test edi, edi
mov dword [0x40ff28], edi
je 0x4018cc
mov ecx, dword [0x40ff2c]
xor eax, eax
imul ecx, dword [0x40ff80]
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 [0x40ff84]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [0x40ff28]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x40ff80]
push eax
mov eax, dword [0x410148]
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 [0x40ff84]
mov edx, dword [0x410148]
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 [0x40fc44], 0
test al, al
je 0x401b2e
mov dword [0x40fc44], edi
mov eax, dword [0x40ff04]
mov ecx, dword [0x410130]
push eax
push ecx
push ebp
call ebx
test eax, eax
mov dword [0x40ff5c], 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 [0x40ff3c]
push 0x67
push edx
call dword [sym.imp.USER32.dll_LoadBitmapA]
test eax, eax
mov dword [0x410134], 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 [0x40ff70], eax
mov dword [0x40ff20], ecx
cdq
idiv dword [0x410130]
mov edi, eax
mov eax, ecx
cdq
idiv dword [0x40ff04]
mov edx, dword [0x40fc68]
mov dword [0x40ff40], edi
mov dword [0x40ff44], 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 [0x40ff5c]
mov ecx, dword [0x40ff24]
push eax
push ecx
call esi
mov edx, dword [0x410134]
mov eax, dword [0x40ff00]
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 [0x40ff3c]
push 0x69
push edx
call dword [sym.imp.USER32.dll_LoadMenuA]
test eax, eax
mov dword [0x40ff68], eax
je 0x401c4a
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
test eax, eax
mov dword [0x40ff68], 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