Function at 0x50111124
Capabilities:
Capture screenshot

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x290
push ebx
push edi
push dword [ebp + 0x78]
mov edi, ecx
mov dword [ebp + 0x68], edi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
mov dword [ebp + 0x1c], ebx
je 0x50111156
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [ebp + 0x6c], eax
jne 0x5011115d
xor eax, eax
jmp 0x50111652
and dword [ebp + 0x38], 0
and dword [ebp + 0x30], 0
push esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp + 0x3c]
push eax
push dword [ebp + 0x78]
call esi
push 0xffffffffffffffeb
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
mov dword [ebp + 0x54], eax
je 0x50111651
lea ecx, [ebp + 8]
push ecx
push dword [eax + 8]
call esi
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x44]
jg 0x5011119f
mov eax, dword [ebp + 0x44]
push dword [edi + 0x18]
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
je 0x50111620
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [0x50296ea4], 8
mov edi, dword [0x5028e62c]
mov dword [ebp + 0x38], eax
jbe 0x501111d4
mov edi, dword [0x5028e624]
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call esi
test eax, eax
je 0x501111f2
cmp dword [0x50296ea4], 8
jbe 0x501111f2
mov eax, dword [0x5028e62c]
jmp 0x501111f6
push 0x14
call esi
mov esi, dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0xf
mov dword [ebp + 0x18], eax
call esi
push 0x14
mov dword [ebp + 0x28], eax
call esi
push 0x12
mov dword [ebp + 0x34], eax
call esi
and dword [ebp - 8], 0
and dword [ebp], 0
mov dword [ebp + 4], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
mov ebx, eax
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0x18]
sub eax, 3
test ebx, ebx
mov dword [ebp + 0x48], eax
mov eax, dword [ebp + 0x10]
je 0x5011124d
cmp eax, dword [ebp + 0x44]
lea eax, [ebp + 8]
jg 0x50111249
lea eax, [ebp + 0x3c]
push ebx
push eax
jmp 0x5011125e
cmp eax, dword [ebp + 0x44]
lea edi, [ebp + 8]
jg 0x50111258
lea edi, [ebp + 0x3c]
push 0x10
call esi
push eax
push edi
push dword [ebp + 0x6c]
mov edi, dword [sym.imp.USER32.dll_FillRect]
call edi
add dword [ebp + 0x48], 3
mov eax, dword [ebp + 0x48]
push dword [ebp + 0x28]
mov esi, dword [ebp + 0x6c]
add eax, 0xfffffffe
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x3c]
push eax
push esi
call edi
sub dword [ebp + 0x48], 2
mov eax, dword [ebp + 0x48]
push dword [ebp + 0x34]
dec eax
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x3c]
push eax
push esi
call edi
call fcn.500d35a9
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
test ebx, ebx
je 0x501112b9
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp + 0x7c], 0
je 0x501112c7
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0x10]
jmp 0x501112c9
xor eax, eax
cmp dword [ebp + 0x7c], 0
mov dword [ebp + 0x2c], eax
je 0x501112de
test eax, eax
je 0x50111620
mov esi, dword [eax]
jmp 0x501112e4
mov eax, dword [ebp + 0x54]
mov esi, dword [eax + 0x10]
test byte [0x50296f20], 1
jne 0x50111302
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0x18]
or dword [0x50296f20], 1
sub eax, 4
mov dword [0x50296f1c], eax
mov eax, dword [0x5028a22c]
mov ebx, dword [ebp + 0x54]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x44]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x44]
cmp eax, dword [ebp + 0x10]
jge 0x5011132c
cmp dword [ebx + 0x18], 0
jg 0x5011132c
and dword [ebx + 0x18], 0
mov dword [ebp + 0x30], 1
mov eax, dword [ebx + 0x18]
and dword [ebp + 0x4c], 0
mov dword [ebp + 0x54], eax
jmp 0x501115d6
mov ecx, dword [esi]
push 0x104
lea eax, [ebp - 0x220]
push eax
call fcn.5008c3b5
cmp dword [ebp + 0x7c], 0
mov eax, dword [0x5028a228]
jne 0x5011136c
mov dword [esi + 8], eax
mov eax, dword [0x50296f1c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x50]
mov dword [esi + 4], eax
jmp 0x5011137d
mov dword [esi + 0x18], eax
mov eax, dword [0x50296f1c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x14], eax
cmp esi, dword [ebx + 0x14]
jne 0x501113a4
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x68]
cmp eax, dword [ecx + 8]
jne 0x501113a4
call fcn.500d35bd
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 0x4c], 1
jmp 0x501113bd
cmp dword [ebp + 0x4c], 0
je 0x501113bd
call fcn.500d35a9
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.GDI32.dll_SelectObject]
and dword [ebp + 0x4c], 0
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.vsansi.dll_lstrlenW]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.vsansi.dll_GetTextExtentPoint32W]
mov ecx, dword [ebp + 0x20]
mov eax, dword [0x5028a224]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp + 0x68]
mov ecx, dword [ecx + 0x28]
cmp eax, ecx
mov dword [ebp + 0x20], eax
jle 0x50111423
cmp dword [ebp + 0x4c], 0
mov dword [ebp + 0x20], ecx
je 0x50111407
call fcn.500d35bd
jmp 0x5011140c
call fcn.500d35a9
push eax
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff8
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.50272bbe
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x7c], 0
jne 0x5011143b
lea ecx, [esi + 4]
mov edx, dword [ecx]
add eax, edx
mov dword [esi + 0xc], eax
add eax, 5
mov dword [ebx + 0x1c], eax
jmp 0x50111445
lea ecx, [esi + 0x14]
mov edx, dword [ecx]
add edx, eax
mov dword [esi + 0x1c], edx
push ecx
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [ebp + 0x7c], 0
lea eax, [esi + 0x14]
jne 0x5011145c
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [ebp + 0x30], 0
jne 0x50111484
mov ecx, dword [ebp + 0x60]
sub ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
add dword [ebp + 0x54], ecx
js 0x501114d9
cmp eax, dword [ebp + 0x10]
jg 0x501114d9
or dword [esi + 0x24], 1
push dword [ebp + 0x18]
push dword [ebp + 0x6c]
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp esi, dword [ebx + 0x14]
jne 0x50111551
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x68]
cmp eax, dword [ecx + 8]
jne 0x501114b5
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.GDI32.dll_SetTextColor]
dec dword [ebp + 0x58]
mov eax, dword [ebp + 0x58]
inc dword [ebp + 0x64]
push dword [ebp + 0x34]
inc eax
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x6c]
call edi
cmp dword [ebp + 0x7c], 0
je 0x501114e2
mov eax, dword [esi + 0x1c]
jmp 0x501114e5
and dword [esi + 0x24], 0xfffffffe
jmp 0x501115b2
mov eax, dword [esi + 0xc]
push dword [ebp + 0x34]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x5c]
inc eax
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x6c]
call edi
inc dword [ebp + 0x5c]
cmp dword [ebp + 0x7c], 0
je 0x50111509
mov eax, dword [esi + 0x20]
jmp 0x5011150c
mov eax, dword [esi + 0x10]
push dword [ebp + 4]
add eax, 2
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x60]
dec eax
mov dword [ebp + 0x58], eax
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x6c]
call edi
cmp dword [ebp + 0x7c], 0
je 0x50111530
mov eax, dword [esi + 0x14]
jmp 0x50111533
mov eax, dword [esi + 4]
cmp dword [ebp + 0x7c], 0
mov dword [ebp + 0x58], eax
je 0x50111541
mov eax, dword [esi + 0x18]
jmp 0x50111544
mov eax, dword [esi + 8]
add dword [ebp + 0x64], 2
inc eax
dec dword [ebp + 0x60]
mov dword [ebp + 0x5c], eax
jmp 0x50111567
cmp dword [ebp + 0x7c], 0
je 0x5011155c
mov eax, dword [esi + 0x1c]
jmp 0x5011155f
mov eax, dword [esi + 0xc]
dec eax
add dword [ebp + 0x5c], 2
mov dword [ebp + 0x58], eax
push dword [ebp + 0x28]
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x6c]
call edi
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.vsansi.dll_lstrlenW]
mov ecx, dword [0x5028a220]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x5028a228]
add ecx, eax
mov eax, dword [0x5028a224]
push 4
push ecx
mov ecx, dword [ebp + 0x50]
add ecx, eax
push ecx
push dword [ebp + 0x6c]
call dword [sym.imp.vsansi.dll_ExtTextOutW]
cmp dword [ebp + 0x7c], 0
je 0x501115cd
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax + 8]
test eax, eax
je 0x501115c6
mov esi, dword [eax]
jmp 0x501115c8
xor esi, esi
mov dword [ebp + 0x2c], eax
jmp 0x501115d0
mov esi, dword [esi + 0x2c]
mov eax, dword [ebp + 0x20]
add dword [ebp + 0x50], eax
test esi, esi
jne 0x5011133b
cmp dword [ebp + 0x30], esi
je 0x501115fb
mov eax, dword [ebp + 0x68]
push 1
push dword [eax + 0x18]
push dword [ebx + 0x1c]
push esi
push dword [ebx + 0x18]
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp + 0x68]
push 0xcc0020
push 0
neg eax
push eax
push dword [ebp + 0x6c]
push dword [ecx + 0x18]
push dword [ebp + 0x10]
push 0
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 0x1c]
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp + 0x38], 0
je 0x50111645
push dword [ebp + 0x38]
push dword [ebp + 0x6c]
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 0x6c]
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
add ebp, 0x70
leave
ret 8