Function at 0x4040fa
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x7c
test eax, eax
push ebp
push esi
mov esi, ecx
je 0x404110
mov ecx, dword [esi + 4]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
jmp 0x40411a
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esi + 4]
mov ebp, eax
push ebx
lea eax, [esp + 0x18]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x20]
sub edx, eax
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
sub eax, edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [esp + 0x20], eax
call ebx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3efc]
test eax, eax
je 0x4041cd
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x2c]
push ecx
push edx
call ebx
mov ecx, dword [esi + 0x3efc]
lea eax, [esp + 0x3c]
push eax
mov edx, dword [ecx + 4]
push edx
call ebx
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
sub eax, ebx
mov ebx, dword [esp + 0x20]
add eax, edx
mov edx, dword [esp + 0x30]
sub edx, ecx
mov ecx, dword [esi + 0x3efc]
add edx, ebx
add ecx, 0x28
push edx
push eax
mov ebx, dword [ecx]
lea eax, [esp + 0x24]
push eax
push edi
call dword [ebx + 4]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x1c]
push ecx
push edi
mov ecx, esi
call fcn.004038b0
mov eax, dword [esi + 0x3ef4]
test eax, eax
jne 0x4041ec
push edi
mov ecx, esi
call fcn.00403e00
lea edx, [esp + 0x1c]
push 2
push edx
mov ecx, esi
call fcn.00402800
mov eax, dword [esi + 0x3f2c]
test eax, eax
je 0x40421a
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 1
push ecx
push edx
push edi
push 0
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
push edi
mov ecx, esi
call fcn.00403d70
push edi
mov ecx, esi
call fcn.00403b10
push edi
mov ecx, esi
call fcn.00403c00
cmp word [esi + 0x70bc], 0
je 0x40430f
push 0x53ada0
mov ecx, esi
call fcn.004043a0
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40430f
mov eax, dword [esi + 0x70b8]
test eax, eax
je 0x40430f
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [esi + 0x3ef4], eax
jne 0x404299
lea ecx, [esp + 0x2c]
push 8
push ecx
jmp 0x4042a0
lea edx, [esp + 0x2c]
push 0
push edx
mov ecx, esi
call fcn.00402800
mov eax, dword [esi + 0x70b8]
push eax
push edi
call ebx
push 1
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x878787
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [esi + 0x3ef4], eax
jne 0x4042e1
lea ecx, [esp + 0x2c]
push 0x2a
push ecx
jmp 0x4042e8
lea edx, [esp + 0x2c]
push 0x28
push edx
lea eax, [esi + 0x70bc]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
lea eax, [esi + 0x70bc]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x10]
push eax
push edi
call ebx
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push 0xcc0020
push eax
push ecx
sub edx, eax
push edi
push edx
mov edx, dword [esp + 0x38]
sub edx, ecx
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x14]
push eax
push edi
call ebx
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x90]
pop edi
test eax, eax
pop ebx
je 0x404383
mov eax, dword [esi + 4]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
pop ebp
add esp, 0x7c
ret 4
mov ecx, dword [esi + 4]
push ebp
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebp
add esp, 0x7c
ret 4