Function at 0x42f031
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x55e900]
cmp eax, 1
jl 0x42f052
cmp eax, 0x14
jle 0x42f05c
mov dword [0x55e900], 3
mov eax, dword [0x55e904]
test eax, eax
jl 0x42f06a
cmp eax, 0xf
jle 0x42f074
mov dword [0x55e904], 4
mov eax, dword [0x55e900]
mov edx, dword [edi + 0x99c]
add edx, 0xfffffffe
cmp eax, edx
jl 0x42f088
mov eax, edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x30], edx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebx + 4]
add edx, dword [ebx + 0xc]
sar edx, 1
jns 0x42f0a1
adc edx, 0
mov ecx, eax
sar ecx, 1
jns 0x42f0aa
adc ecx, 0
sub edx, ecx
mov dword [ebp - 0x2c], edx
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0x18], 1
je 0x42f165
mov eax, dword [0x55f890]
push dword [eax*4 + 0x57d6d8]
push esi
call sub.GDI32.dll_SetBkColor
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x38], edx
cmp dword [edi + 0x6a8], 0
je 0x42f117
xor ecx, ecx
mov dword [edi + 0x6a8], ecx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x34], edx
push 0
push 0
push 0x55e9e7
lea ecx, [ebp - 0x40]
push ecx
push 6
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push esi
call sub.GDI32.dll_ExtTextOutA
jmp 0x42f165
mov eax, dword [ebx + 4]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edx
push 0
push 0
push 0x55e9eb
lea ecx, [ebp - 0x40]
push ecx
push 6
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push esi
call sub.GDI32.dll_ExtTextOutA
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x34], edx
push 0
push 0
push 0x55e9ef
lea ecx, [ebp - 0x40]
push ecx
push 6
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push esi
call sub.GDI32.dll_ExtTextOutA
mov eax, dword [0x55e90c]
test eax, eax
je 0x42f2ae
lea edx, [ebp - 0x58]
push edx
push 0x18
push eax
call sub.GDI32.dll_GetObjectA
test eax, eax
je 0x42f2ae
push esi
call sub.GDI32.dll_CreateCompatibleDC
mov edi, eax
test edi, edi
je 0x42f2ae
push dword [0x55e90c]
push edi
call sub.GDI32.dll_SelectObject
mov dword [ebp - 4], eax
push esi
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
test edi, edi
jne 0x42f1c6
push dword [ebp - 4]
push edi
call sub.GDI32.dll_SelectObject
push edi
call sub.GDI32.dll_DeleteDC
jmp 0x42f2ae
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42f209
push dword [ebp - 0x10]
call sub.GDI32.dll_DeleteDC
push dword [ebp - 4]
push edi
call sub.GDI32.dll_SelectObject
push edi
call sub.GDI32.dll_DeleteDC
jmp 0x42f2ae
push dword [ebp - 8]
push dword [ebp - 0x10]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
push 0xcc0020
push 0
push 0
push edi
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sub.GDI32.dll_BitBlt
mov edx, dword [ebp - 0x54]
add dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x28]
jle 0x42f221
mov eax, dword [ebp - 0x50]
add dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x24]
jle 0x42f21c
push 0xff00ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push 0
push 0
push dword [ebp - 0x10]
call fcn.004771e4
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call sub.GDI32.dll_SelectObject
push dword [ebp - 8]
call sub.GDI32.dll_DeleteObject
push dword [ebp - 0x10]
call sub.GDI32.dll_DeleteDC
push dword [ebp - 4]
push edi
call sub.GDI32.dll_SelectObject
push edi
call sub.GDI32.dll_DeleteDC
mov ecx, dword [ebx + 8]
mov dword [ebx], ecx
jmp 0x42f2e0
mov eax, dword [0x55e904]
push dword [eax*4 + 0x57d6d8]
push esi
call sub.GDI32.dll_SetBkColor
push 0
push 0
push 0x55e9f3
lea edx, [ebp - 0x30]
push edx
push 6
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
call sub.GDI32.dll_ExtTextOutA
mov ecx, dword [ebx + 8]
mov dword [ebx], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14