Function at 0x41fd90
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, dword [0x589340]
cmp edi, 1
mov esi, edx
mov dword [esp + 0x10], esi
mov ebx, ecx
jl 0x41fdaf
cmp edi, 0x14
jle 0x41fdba
mov edi, 3
mov dword [0x589340], edi
mov eax, dword [0x589344]
test eax, eax
jl 0x41fdc8
cmp eax, 0xf
jle 0x41fdd2
mov dword [0x589344], 4
mov eax, dword [ebx + 0x9e4]
add eax, 0xfffffffe
cmp edi, eax
jl 0x41fde1
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 0x41fed3
mov ecx, dword [0x594088]
call fcn.00431e50
mov ecx, dword [eax*4 + 0x593350]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [ebx + 0x6ec]
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 0x574b10
je 0x41fe8a
mov dword [ebx + 0x6ec], 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 0x41fed3
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 0x574b10
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 [0x59179c]
test eax, eax
je 0x41ff59
lea ecx, [esp + 0x44]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x41ff59
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x41ff59
mov edx, dword [0x59179c]
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 0x41ffa4
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 [0x589344]
call fcn.00431e50
mov eax, dword [eax*4 + 0x593350]
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 0x574b10
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 0x41ffc2
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 0x41ffc0
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.00473090
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