Function at 0x41e992
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, 0x56bbc8
mov eax, dword [0x54bf80]
cmp eax, 1
jl 0x41e9b5
cmp eax, 0x14
jle 0x41e9bf
mov dword [0x54bf80], 3
mov eax, dword [0x54bf84]
test eax, eax
jl 0x41e9cd
cmp eax, 0xf
jle 0x41e9d7
mov dword [0x54bf84], 4
mov eax, dword [0x54bf80]
mov dword [0x56bbd8], eax
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x818]
add edx, 0xfffffffe
cmp eax, edx
jl 0x41e9f7
mov dword [0x56bbd8], edx
mov eax, dword [ebp + 0x14]
mov dword [0x56bbb8], eax
mov ecx, dword [esi + 8]
mov dword [0x56bbc0], ecx
mov eax, dword [esi + 4]
add eax, dword [esi + 0xc]
sar eax, 1
jns 0x41ea15
adc eax, 0
mov edx, dword [0x56bbd8]
sar edx, 1
jns 0x41ea22
adc edx, 0
sub eax, edx
mov dword [0x56bbbc], eax
add eax, dword [0x56bbd8]
mov dword [0x56bbc4], eax
cmp dword [ebp + 0x18], 1
je 0x41eae8
mov ecx, dword [0x54d290]
push dword [ecx*4 + 0x56ecb4]
push ebx
call sub.GDI32.dll_SetBkColor
mov eax, dword [0x56bbb8]
mov dword [edi], eax
mov edx, dword [0x56bbc0]
mov dword [edi + 8], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x638], 0
je 0x41ea9d
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x638], edx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
push 0
push 0
push 0x54c16a
push edi
push 6
push dword [edi + 4]
push dword [edi]
push ebx
call sub.GDI32.dll_ExtTextOutA
jmp 0x41eae8
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov ecx, dword [0x56bbbc]
mov dword [edi + 0xc], ecx
push 0
push 0
push 0x54c16e
push edi
push 6
push dword [edi + 4]
push dword [edi]
push ebx
call sub.GDI32.dll_ExtTextOutA
mov eax, dword [0x56bbc4]
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
mov dword [edi + 0xc], edx
push 0
push 0
push 0x54c172
push edi
push 6
push dword [edi + 4]
push dword [edi]
push ebx
call sub.GDI32.dll_ExtTextOutA
mov eax, dword [0x54bf8c]
test eax, eax
je 0x41ec70
lea edx, [ebp - 0x38]
push edx
push 0x18
push eax
call sub.GDI32.dll_GetObjectA
test eax, eax
je 0x41ec70
push ebx
call sub.GDI32.dll_CreateCompatibleDC
mov edi, eax
test edi, edi
je 0x41ec70
push dword [0x54bf8c]
push edi
call sub.GDI32.dll_SelectObject
mov dword [ebp - 4], eax
push ebx
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
test edi, edi
jne 0x41eb49
push dword [ebp - 4]
push edi
call sub.GDI32.dll_SelectObject
push edi
call sub.GDI32.dll_DeleteDC
jmp 0x41ec70
mov eax, dword [0x56bbc0]
sub eax, dword [0x56bbb8]
mov dword [ebp - 0x1c], eax
mov edx, dword [0x56bbc4]
sub edx, dword [0x56bbbc]
mov dword [ebp - 0x20], edx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push ebx
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41eb97
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 0x41ec70
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 - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sub.GDI32.dll_BitBlt
mov edx, dword [ebp - 0x34]
add dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x56bbc0]
jle 0x41ebaf
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
cmp edx, dword [0x56bbc4]
jle 0x41ebaa
push 0xff00ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x56bbbc]
push dword [0x56bbb8]
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push 0
push 0
push dword [ebp - 0x10]
call fcn.00507041
test eax, eax
jne 0x41ec3f
push 0xcc0020
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [0x56bbbc]
push dword [0x56bbb8]
push ebx
call sub.GDI32.dll_BitBlt
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 [esi + 8]
mov dword [esi], ecx
jmp 0x41eca9
mov eax, dword [0x54bf84]
push dword [eax*4 + 0x56ecb4]
push ebx
call sub.GDI32.dll_SetBkColor
push 0
push 0
push 0x54c176
push 0x56bbb8
push 6
push dword [0x56bbbc]
push dword [0x56bbb8]
push ebx
call sub.GDI32.dll_ExtTextOutA
mov edx, dword [esi + 8]
mov dword [esi], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14