Function at 0x402570
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x74
push ebx
push ebp
mov ebp, dword [esp + 0x80]
push esi
push edi
mov edi, dword [esp + 0x90]
push edi
lea ebx, [esp + 0x64]
mov eax, ebp
call fcn.00402a20
mov ecx, dword [ebp]
add esp, 4
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x6c]
cmp dword [esp + 0x64], edx
jge 0x40292f
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x60], eax
jge 0x40292f
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov esi, edx
sub esi, eax
sub ebx, ecx
cmp ebx, esi
jl 0x402909
cmp dword [esp + 0x94], 3
je 0x402909
cmp ecx, eax
mov esi, dword [sym.imp.USER32.dll_SetRect]
jge 0x402653
test edi, edi
je 0x402607
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x64]
push edx
push ecx
push eax
jmp 0x402613
mov edx, dword [esp + 0x6c]
push edx
push eax
mov eax, dword [esp + 0x6c]
push eax
push ecx
lea ecx, [esp + 0x40]
push ecx
call esi
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ebx, dword [esp + 0x8c]
lea edx, [esp + 0x30]
push edx
push ebp
mov eax, edi
call fcn.00402110
mov edx, dword [esp + 0x84]
add esp, 8
jmp 0x40265a
mov ebx, dword [esp + 0x8c]
mov eax, dword [esp + 0x74]
cmp edx, eax
jge 0x4026b5
test edi, edi
je 0x402679
mov ecx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x6c]
push eax
push edx
push ecx
lea edx, [esp + 0x40]
push edx
jmp 0x40268a
mov ecx, dword [esp + 0x6c]
push ecx
push eax
mov eax, dword [esp + 0x6c]
push eax
push edx
lea ecx, [esp + 0x40]
push ecx
call esi
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
lea edx, [esp + 0x30]
push edx
push ebp
mov eax, edi
call fcn.00402110
add esp, 8
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp + 0x70]
push ecx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
lea esi, [esp + 0x34]
mov edi, ebp
mov dword [esp + 0x30], eax
call fcn.00401f30
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
sub ebx, dword [esp + 0x34]
sub ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x90]
add esp, 4
xor eax, eax
push edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
push ebx
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0
lea edx, [esp + 0x5c]
push edx
push 2
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
lea eax, [ecx + 8]
imul eax, eax, 0xd
mov edi, edx
neg edi
sbb edi, edi
add ecx, 0xb
imul ecx, ecx, 0xd
and edi, 0xfffffff3
add edi, 0xd
test edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
je 0x4027f3
push 0xcc0020
push edi
mov edi, dword [esp + 0x1c]
push eax
push edi
push 5
push ebx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
push 0xcc0020
push 8
push eax
push edi
push 5
push ebx
lea ecx, [ebp - 5]
push ecx
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x18]
push 0xcc0020
push 5
push edx
push edi
push 3
push ebx
push 5
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
push 3
push ebx
push 5
push 0
push esi
add ebp, 0xfffffff3
push ebp
push ebx
push 8
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x4028a4
lea ecx, [ebx - 4]
cmp ecx, 4
mov dword [esp + 0x1c], 4
jle 0x402839
mov ecx, dword [esp + 0x1c]
push 0xcc0020
push edi
add eax, 4
push eax
mov eax, dword [esp + 0x20]
push eax
push ebp
push 8
push 0
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
add eax, 8
lea ecx, [ebx - 4]
mov dword [esp + 0x1c], eax
cmp eax, ecx
mov eax, dword [esp + 0x18]
jl 0x402803
mov edx, dword [esp + 0x14]
push 0xcc0020
push edi
push eax
push edx
push ebp
push 4
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0xcc0020
push edi
add eax, 9
push eax
push ecx
push ebp
push 4
push 0
lea eax, [ebx - 4]
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
cmp ebx, 0x15
jle 0x4028a0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0xcc0020
push edi
push edx
push eax
push ebp
lea eax, [ebx - 0xd]
cdq
push 0xd
sub eax, edx
push 0
sar eax, 1
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 0xcc0020
push 0
push 0
push esi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x44]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0xa8]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x24]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push esi
call ebx
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x2c]
push eax
push edi
call ebx
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
lea ecx, [esp + 0x30]
push ecx
mov esi, ebp
call fcn.00401fe0
mov ebx, dword [esp + 0x90]
add esp, 4
lea edx, [esp + 0x30]
push edx
push ebp
mov eax, edi
call fcn.00402110
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret