Function at 0x420c70
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, dword [0x59b340]
cmp edi, 1
mov esi, edx
mov dword [esp + 0x10], esi
mov ebx, ecx
jl 0x420c8f
cmp edi, 0x14
jle 0x420c9a
mov edi, 3
mov dword [0x59b340], edi
mov eax, dword [0x59b344]
test eax, eax
jl 0x420ca8
cmp eax, 0xf
jle 0x420cb2
mov dword [0x59b344], 4
mov eax, dword [ebx + 0x9ec]
add eax, 0xfffffffe
cmp edi, eax
jl 0x420cc1
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 0x420db3
mov ecx, dword [0x5a54f8]
call fcn.004336b0
mov ecx, dword [eax*4 + 0x5a47c0]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [ebx + 0x6f0]
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 0x583b74
je 0x420d6a
mov dword [ebx + 0x6f0], 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 0x420db3
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 0x583b74
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 [0x5a2ba4]
test eax, eax
je 0x420e39
lea ecx, [esp + 0x44]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x420e39
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x420e39
mov edx, dword [0x5a2ba4]
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 0x420e84
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 [0x59b344]
call fcn.004336b0
mov eax, dword [eax*4 + 0x5a47c0]
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 0x583b74
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 0x420ea2
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 0x420ea0
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.00476750
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