Function at 0x427730
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, dword [0x6093c4]
cmp esi, 1
push edi
jl 0x427747
cmp esi, 0x14
jle 0x427752
mov esi, 3
mov dword [0x6093c4], esi
mov eax, dword [0x6093c8]
xor ebx, ebx
cmp eax, ebx
jl 0x427762
cmp eax, 0xf
jle 0x42776c
mov dword [0x6093c8], 4
mov edi, dword [esp + 0x58]
mov eax, dword [edi + 0xa00]
add eax, 0xfffffffe
cmp esi, eax
jl 0x42777f
mov esi, eax
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 4]
add eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], ecx
add ecx, esi
cmp eax, 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ecx
je 0x42786d
mov ecx, dword [0x613690]
push ecx
call fcn.0043bf80
mov edx, dword [eax*4 + 0x612870]
mov esi, dword [esp + 0x60]
add esp, 4
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push ebx
mov dword [esp + 0x38], ecx
cmp dword [edi + 0x704], ebx
push ebx
mov dword [esp + 0x34], eax
push 0x5e6c98
je 0x427824
mov dword [edi + 0x704], ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x38]
push edx
push 6
push ecx
push eax
push esi
mov dword [esp + 0x50], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x427871
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 4]
mov edi, dword [sym.imp.GDI32.dll_ExtTextOutA]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x38]
push edx
push 6
push ecx
push eax
push esi
mov dword [esp + 0x50], ecx
call edi
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
push 0x5e6c98
lea edx, [esp + 0x38]
push edx
push 6
push eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
push eax
push esi
mov dword [esp + 0x58], ecx
call edi
jmp 0x427871
mov esi, dword [esp + 0x5c]
mov eax, dword [0x610a58]
cmp eax, ebx
je 0x4278f7
lea ecx, [esp + 0x3c]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x4278f7
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x4278f7
mov edx, dword [0x610a58]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov dword [esp + 0x64], eax
call edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x28]
sub ecx, edx
push ecx
push eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x427943
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
mov eax, dword [esp + 0x60]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call edi
mov eax, dword [0x6093c8]
push eax
call fcn.0043bf80
mov ecx, dword [eax*4 + 0x612870]
add esp, 4
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0x5e6c98
lea edx, [esp + 0x28]
push edx
push 6
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [ebp + 8]
pop edi
pop esi
mov dword [ebp], edx
pop ebp
pop ebx
add esp, 0x44
ret
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], 0
jmp 0x427960
xor esi, esi
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
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 + 0x40]
mov ecx, dword [esp + 0x24]
add esi, eax
cmp esi, ecx
jle 0x427962
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
add ecx, esi
cmp ecx, edx
mov dword [esp + 0x58], ecx
jle 0x427960
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x5c]
push 0xff00ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push 0
push 0
push edi
call fcn.00486f30
mov edx, dword [esp + 0x40]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
add esp, 0x2c
push edx
push edi
call esi
mov eax, dword [esp + 0x18]
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 + 0x60]
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, 0x44
ret