Function at 0x404650
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x118
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x128]
mov dword [esp + 8], eax
lea eax, [ebp + 1]
imul eax, ebx
push esi
lea esi, [eax + eax*2]
xor ecx, ecx
mov eax, esi
mov edx, 3
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x404797
mov dword [esp + 0x14], eax
call fcn.00404510
mov ecx, dword [0x40c8ec]
push 0x103
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.MSVCR90.dll_strncpy]
lea eax, [esp + 0x2c]
push 0x5f
push eax
mov byte [esp + 0x137], 0
call dword [sym.imp.MSVCR90.dll_strrchr]
mov esi, eax
add esp, 0x14
sub esi, 6
call fcn.00406fc0
movzx ecx, word [0x40c8e2]
movzx edx, word [0x40c8e0]
movzx eax, word [0x40c8de]
push ecx
movzx ecx, word [0x40c8dc]
push edx
movzx edx, word [0x40c8da]
push eax
movzx eax, word [0x40c8d8]
push ecx
push edx
push eax
push str._02u_02u_02u__02u_02u_02u.bmp
push esi
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x20
push 0
lea edi, [esp + 0x24]
call fcn.00401180
call fcn.00401a10
mov eax, dword [0x40c6f8]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
cmp eax, 0xb
je 0x40476c
push 1
push 0
push edi
mov dword [0x40c6f8], 0xb
call dword [sym.imp.USER32.dll_InvalidateRect]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x18], eax
test esi, esi
je 0x404788
test eax, eax
jne 0x4047c4
mov dword [0x40c990], 0x30
jmp 0x40487e
lea eax, [esi + esi*2]
push eax
push str.BMP_image_buffer_allocation_of__u_bytes_failed._n
mov esi, 0x40c8c8
mov dword [esp + 0x1c], 0
call fcn.004074a0
add esp, 8
mov dword [0x40c990], 0x30
jmp 0x40473e
cmp dword [0x40c990], 0
jne 0x40487e
push ebx
push ebp
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
test edi, edi
jne 0x4047ef
mov dword [0x40c990], 0x30
jmp 0x40487a
mov ecx, dword [esp + 0x18]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
push 0xcc0020
push 0
push 0
push esi
push ebx
push ebp
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x404826
mov dword [0x40c990], 0x30
jmp 0x404873
mov eax, ebp
neg eax
neg eax
and eax, 3
mov dword [0x40c950], eax
push 0
lea eax, [eax + ebp*2]
push 0x40c95c
add eax, ebp
mov dword [0x40c960], ebp
imul eax, ebx
mov ebp, dword [esp + 0x1c]
push ebp
push ebx
push 0
push edi
push esi
mov dword [0x40c964], ebx
mov dword [0x40c970], eax
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x404873
call fcn.00401ac0
push ebp
call fcn.00401b30
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp eax, 0xb
je 0x404899
push 5
push 0
push 0
push edi
mov dword [0x40c6f8], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4048a8
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test esi, esi
je 0x4048b4
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4048c5
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [0x40c954]
test eax, eax
je 0x4048e2
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [0x40c954], 0
cmp dword [0x40c990], 0
mov esi, 0x40c8c8
je 0x40490d
mov ecx, dword [0x40c958]
push ecx
push str.BMP_file_write_error_for:___s__n_n
call fcn.004074a0
mov dword [0x40c990], 0
jmp 0x40491e
mov edx, dword [0x40c958]
push edx
push str.BMP_file_write_complete_for:___s__n_n
call fcn.004074a0
mov ecx, dword [esp + 0x12c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004074ec
add esp, 0x118
ret