Function at 0x422fc0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, dword [0x5bf398]
cmp edi, 1
mov esi, edx
mov dword [esp + 0x10], esi
mov ebx, ecx
jl 0x422fdf
cmp edi, 0x14
jle 0x422fea
mov edi, 3
mov dword [0x5bf398], edi
mov eax, dword [0x5bf39c]
test eax, eax
jl 0x422ff8
cmp eax, 0xf
jle 0x423002
mov dword [0x5bf39c], 4
mov eax, dword [ebx + 0xa04]
add eax, 0xfffffffe
cmp edi, eax
jl 0x423011
mov edi, eax
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 4]
add eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], ecx
add ecx, edi
cmp eax, 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], ecx
je 0x423103
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov ecx, dword [eax*4 + 0x5c8f18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [ebx + 0x704]
test ecx, ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push 0
push 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edx
push 0x5a4bec
je 0x4230ba
mov dword [ebx + 0x704], 0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x40]
push edx
push 6
push ecx
push eax
push esi
mov dword [esp + 0x58], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x423103
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 4]
mov edi, dword [sym.imp.GDI32.dll_ExtTextOutA]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x40]
push edx
push 6
push ecx
push eax
push esi
mov dword [esp + 0x58], ecx
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0xc]
push 0
push 0
push 0x5a4bec
lea edx, [esp + 0x40]
push edx
push 6
push eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x4c]
push eax
push esi
mov dword [esp + 0x60], ecx
call edi
mov eax, dword [0x5c72fc]
test eax, eax
je 0x423189
lea ecx, [esp + 0x44]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x423189
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x423189
mov edx, dword [0x5c72fc]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov dword [esp + 0x68], eax
call edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [esp + 0x30]
sub ecx, edx
push ecx
push eax
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4231d4
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
mov eax, dword [esp + 0x64]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call edi
mov ecx, dword [0x5bf39c]
call fcn.00435dc0
mov eax, dword [eax*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
push 0
push 0x5a4bec
lea ecx, [esp + 0x30]
push ecx
push 6
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ebp], ecx
pop ebp
pop ebx
add esp, 0x4c
ret 8
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x60], 0
lea esp, [esp]
xor esi, esi
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x60]
push 0xcc0020
push 0
push 0
push ebx
push ecx
push eax
push edx
push esi
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
add esi, eax
cmp esi, ecx
jle 0x4231f2
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
add ecx, esi
cmp ecx, edx
mov dword [esp + 0x60], ecx
jle 0x4231f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push 0xff00ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
push 0
xor edx, edx
mov ecx, edi
call fcn.0047cf50
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push edi
call esi
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
mov ecx, dword [esp + 0x64]
push ecx
push ebx
call esi
push ebx
call edi
mov edx, dword [ebp + 8]
pop edi
pop esi
mov dword [ebp], edx
pop ebp
pop ebx
add esp, 0x4c
ret 8