Function at 0x418d40
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
mov dword [ebp - 0x1c], ecx
push dword [ebp + 0xc]
call fcn.004195e7
xor eax, eax
mov dword [ebp - 0x28], eax
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 8]
call sub.USER32.dll_BeginPaint
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x419147
cmp dword [0x55f8e0], 0
je 0x419147
lea edx, [ebp - 0x80]
push edx
push dword [ebp + 8]
call sub.USER32.dll_GetClientRect
cmp dword [ebp - 0x78], 0
je 0x419147
cmp dword [0x55d564], 0
jne 0x418dde
cmp dword [0x55d2f8], 0
je 0x418dde
cmp dword [0x55d2cc], 0
je 0x418dde
cmp dword [0x55d2ec], 1
jne 0x418dde
mov dword [ebp - 0x30], 1
jmp 0x418de3
xor ecx, ecx
mov dword [ebp - 0x30], ecx
push 0
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x419147
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x20]
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x419147
push dword [ebp - 8]
push dword [ebp - 0x28]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0xc], eax
push dword [0x55f8d8]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 0
push 0
push dword [ebp - 0x28]
call fcn.00418549
cmp dword [0x5621bc], 0
jne 0x418e80
cmp dword [0x55d564], 0
jne 0x418e80
push dword [0x55f8dc]
push 1
push dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
inc eax
push eax
push 0
push dword [ebp - 0x28]
call fcn.00418549
push dword [0x55f8e0]
push 1
push dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
add edx, 2
push edx
push 0
push dword [ebp - 0x28]
call fcn.00418549
mov ecx, dword [0x55d538]
mov dword [ebp - 0x2c], ecx
mov dword [0x55d558], 0xffffffff
push 0
push dword [ebp + 0xc]
push dword [0x55d548]
call fcn.00418742
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x419147
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [0x55d564], 0
je 0x418f6d
push 0
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x418f6d
lea edx, [ebp - 0x98]
push edx
push 0x18
push dword [0x55d564]
call sub.GDI32.dll_GetObjectA
push dword [0x55d564]
push dword [ebp - 0x24]
call sub.GDI32.dll_SelectObject
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xa4], eax
xor edx, edx
mov dword [ebp - 0xa8], edx
push 0xcc0020
push 0
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
push dword [ebp - 0x28]
call sub.GDI32.dll_BitBlt
mov ecx, dword [ebp - 0x94]
add dword [ebp - 0xa8], ecx
mov eax, dword [ebp - 0xa8]
cmp eax, dword [ebp - 0x78]
jl 0x418f0a
mov edx, dword [ebp - 0x90]
add dword [ebp - 0xa4], edx
mov ecx, dword [ebp - 0xa4]
cmp ecx, dword [ebp - 0x74]
jl 0x418f02
push ebx
push dword [ebp - 0x24]
call sub.GDI32.dll_SelectObject
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x2c]
sar eax, 1
jns 0x418f7d
adc eax, 0
mov dword [ebp - 0x14], eax
mov eax, dword [0x5621bc]
test eax, eax
jne 0x418f8c
inc dword [ebp - 0x14]
cmp dword [0x55d2f8], 0
je 0x418fc0
cmp dword [0x55d2cc], 0
jne 0x418fa3
inc dword [ebp - 0x14]
jmp 0x418fc3
mov edx, dword [0x55d2ec]
cmp edx, 1
je 0x418fb4
add dword [ebp - 0x14], 0
jmp 0x418fc3
test eax, eax
je 0x418fc3
dec edx
jne 0x418fc3
inc dword [ebp - 0x14]
jmp 0x418fc3
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x74], eax
xor ebx, ebx
mov dword [ebp - 0x10], 2
cmp ebx, dword [ebp - 0x18]
jge 0x4190bc
mov esi, ebx
shl esi, 2
lea esi, [esi + esi*2]
add esi, dword [ebp - 0x1c]
test byte [esi + 8], 8
jne 0x4190b2
test byte [esi + 9], 1
je 0x419063
cmp dword [ebp - 0x24], 0
jne 0x41905c
push dword [0x55f8dc]
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff7
push eax
push 1
mov edx, dword [ebp - 0x7c]
add edx, 2
push edx
mov ecx, dword [esi]
sar ecx, 1
jns 0x419024
adc ecx, 0
add ecx, dword [ebp - 0x10]
push ecx
push dword [ebp - 0x28]
call fcn.00418549
push dword [0x55f8e0]
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff7
push eax
push 1
mov edx, dword [ebp - 0x7c]
add edx, 2
push edx
mov ecx, dword [esi]
sar ecx, 1
jns 0x41904f
adc ecx, 0
add ecx, dword [ebp - 0x10]
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.00418549
mov eax, dword [esi]
add dword [ebp - 0x10], eax
jmp 0x4190b2
test ebx, ebx
jne 0x419072
mov edi, dword [0x55d530]
add edi, 8
jmp 0x419098
cmp ebx, 1
jne 0x419082
mov edi, dword [0x55d530]
add edi, 8
jmp 0x419098
cmp ebx, 4
jne 0x419092
mov edi, dword [0x55d530]
add edi, 6
jmp 0x419098
mov edi, dword [0x55d530]
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call fcn.00418a36
dec edi
add dword [ebp - 0x10], edi
inc ebx
cmp ebx, dword [ebp - 0x18]
jl 0x418fe4
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 8]
call sub.USER32.dll_GetClientRect
cmp dword [0x5621bc], 0
jne 0x41910d
cmp dword [ebp - 0x30], 0
je 0x41910d
push dword [0x55f8dc]
push 1
push dword [ebp - 0x78]
mov edx, dword [ebp - 0x74]
add edx, 0xfffffffe
push edx
push 0
push dword [ebp - 0x28]
call fcn.00418549
push dword [0x55f8e0]
push 1
push dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
dec ecx
push ecx
push 0
push dword [ebp - 0x28]
call fcn.00418549
cmp dword [ebp - 0x24], 0
je 0x41911b
push dword [ebp - 0x24]
call sub.GDI32.dll_DeleteDC
push dword [ebp - 4]
push dword [0x55d548]
call sub.GDI32.dll_SelectObject
push 0xcc0020
push 0
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 0
push 0
push dword [ebp - 0x20]
call sub.GDI32.dll_BitBlt
cmp dword [ebp - 0x28], 0
je 0x41916e
cmp dword [ebp - 8], 0
je 0x419166
push dword [ebp - 0xc]
push dword [ebp - 0x28]
call sub.GDI32.dll_SelectObject
push dword [ebp - 8]
call sub.GDI32.dll_DeleteObject
push dword [ebp - 0x28]
call sub.GDI32.dll_DeleteDC
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 8]
call sub.USER32.dll_EndPaint
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8