Function at 0x10170f50
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x101f2cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xb0]
xor edi, edi
mov dword [esp + 0xa8], edi
xor esi, esi
cmp byte [esp + 0xc4], 0
mov dword [esp + 0x70], esi
jne 0x10170fb0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
mov dword [esp + 0x70], eax
xor ecx, ecx
cmp byte [esp + 0xc4], cl
mov dword [esp + 0x54], ecx
jne 0x10170fcc
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], edi
mov byte [esp + 0xa8], 1
cmp byte [esp + 0xc4], 0
jne 0x101710a3
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov dword [esp + 0x4c], edi
cmp dword [ebp + 0x1ac], 0
je 0x1017105d
xor eax, eax
lea esi, [esp + 0x68]
lea ecx, [ebp + 0x1ac]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.1002b890
test al, al
jne 0x1017103f
cmp dword [ebp + 0x1ac], 0
je 0x1017105d
mov eax, dword [ebp + 0x1ac]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x1017105d
mov dword [ebp + 0x1ac], 0
jmp 0x1017105d
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx]
cmp dword [esp + 0x68], ecx
jne 0x10171056
mov edx, dword [ebx + 0xc]
sub edx, dword [ebx + 4]
cmp dword [esp + 0x6c], edx
je 0x1017105d
mov esi, ebp
call fcn.10174130
mov eax, dword [ebp + 0x1ac]
test eax, eax
je 0x101710a3
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx]
push 0xcc0020
push 0
push 0
mov esi, eax
mov eax, dword [ebx + 4]
push edi
sub edx, eax
push edx
mov edx, dword [ebx + 8]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0xd0]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push edi
jmp 0x101713d6
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov esi, dword [ebx + 0xc]
sub esi, dword [ebx + 4]
mov dword [esp + 0x40], eax
mov al, byte [esp + 0xc4]
test al, al
mov dword [esp + 0x44], esi
jne 0x101710c7
mov dword [esp + 0x30], edi
jmp 0x101710d2
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x30], ecx
test al, al
mov dword [esp + 0x28], 0
jne 0x10171101
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
push esi
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [ebp + 0x1ac], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x28], eax
mov ecx, dword [ebp + 0x100]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x34], eax
je 0x10171129
mov edx, dword [ecx]
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, dword [edx + 0xec]
call ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
cmp dword [ebp + 0xfc], 0
je 0x10171165
sub esp, 0x10
mov edx, esi
sub edx, eax
mov eax, esp
xor ecx, ecx
xor edi, edi
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0xfc]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x40]
push edx
mov dword [esp + 0x94], esi
call fcn.1001f250
cmp dword [ebp + 0x1a4], 0
mov dword [esp + 0x14], 0
je 0x101712b0
cmp dword [ebp + 0x104], 0
je 0x101712b0
mov edx, str.Client
lea eax, [esp + 0x74]
call fcn.10007690
mov byte [esp + 0xa8], 2
mov esi, dword [ebp + 0x1a8]
mov edi, dword [ebp + 0x1a4]
push 1
lea eax, [esp + 0x78]
push eax
call fcn.100347f0
mov esi, eax
mov byte [esp + 0xa8], 1
cmp dword [esp + 0x8c], 8
jb 0x101711d6
mov ecx, dword [esp + 0x78]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
cmp esi, eax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], eax
mov word [esp + 0x78], ax
je 0x101712b0
mov edx, dword [esi]
mov ecx, dword [edx + 0xe4]
lea eax, [esp + 0x50]
push eax
push esi
call ecx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x101712b0
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [esp + 0x48]
push ecx
push eax
call edx
cmp dword [esp + 0x48], 0
jle 0x101712b0
mov edx, str.Background
lea eax, [esp + 0x74]
call fcn.10007690
mov byte [esp + 0xa8], 3
mov esi, dword [ebp + 0x1a8]
mov edi, dword [ebp + 0x1a4]
push 1
lea eax, [esp + 0x78]
push eax
call fcn.100347f0
mov esi, eax
mov byte [esp + 0xa8], 1
lea ecx, [esp + 0x74]
call fcn.10001dd0
test esi, esi
je 0x101712b0
mov eax, esi
call fcn.1000e050
mov esi, eax
test esi, esi
je 0x101712b0
mov ecx, dword [esi]
mov eax, dword [ecx + 0x3c]
lea edx, [esp + 0x48]
push edx
push esi
call eax
cmp dword [esp + 0x48], 0
jle 0x101712b0
mov eax, esi
call fcn.10013280
mov ecx, 3
sub ecx, eax
cmp ecx, 1
mov dword [esp + 0x14], ecx
jge 0x101712b0
mov dword [esp + 0x14], 0
cmp dword [ebp + 0x100], 0
je 0x10171399
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x44]
mov esi, eax
sub esi, dword [esp + 0x34]
xor edi, edi
test edx, edx
jle 0x10171366
mov ecx, eax
mov dword [esp + 0x64], ecx
lea ecx, [edi + edx]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0x104]
test ecx, ecx
je 0x10171328
sub esp, 0x10
mov eax, esp
mov edx, edi
mov dword [eax], edx
mov edx, esi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x40]
push eax
call fcn.1001f250
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x104]
mov dword [esp + 0x80], eax
mov eax, ebx
sub eax, edx
test ecx, ecx
mov dword [esp + 0x74], edi
je 0x10171366
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, esi
mov dword [edx + 4], eax
mov eax, ebx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x90]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x40]
push edx
call fcn.1001f250
mov eax, dword [esp + 0x14]
sub esp, 0x10
mov ecx, esp
add edi, eax
mov dword [ecx], edi
sub ebx, eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 4], esi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x100]
push eax
call fcn.1001f250
mov ebx, dword [esp + 0xb8]
cmp byte [esp + 0xc4], 0
jne 0x101713dc
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [ebx + 4]
push 0xcc0020
push 0
push 0
push esi
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [esp + 0xcc]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0xbc]
call fcn.101c6680
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0xa8], 4
mov ecx, dword [esp + 0xb4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x48], eax
lea edi, [ebp + 0x44]
push esi
mov eax, edi
call fcn.10173330
test al, al
je 0x10171467
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
test al, al
mov edx, dword [esp + 0xc0]
je 0x1017144c
mov ecx, dword [esp + 0xb4]
and edx, 0x1000
neg edx
sbb edx, edx
push ecx
add edx, 2
lea ecx, [ebp + 0x11c]
jmp 0x10171460
mov eax, dword [esp + 0xb4]
shr edx, 0xc
and edx, 1
push eax
lea ecx, [ebp + 0x10c]
mov eax, edi
call fcn.1001f3c0
lea edi, [ebp + 0x74]
push esi
mov eax, edi
call fcn.10173330
test al, al
je 0x10171498
mov edx, dword [esp + 0xc0]
mov ecx, dword [esp + 0xb4]
shr edx, 0xd
push ecx
and edx, 1
lea ecx, [ebp + 0x12c]
mov eax, edi
call fcn.1001f3c0
lea edi, [ebp + 0xa4]
push esi
mov eax, edi
call fcn.10173330
test al, al
je 0x101714cc
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xb4]
shr edx, 0xe
push eax
and edx, 1
lea ecx, [ebp + 0x13c]
mov eax, edi
call fcn.1001f3c0
lea edi, [ebp + 0xb4]
push esi
mov eax, edi
call fcn.10173330
test al, al
je 0x10171509
test dword [esp + 0xc0], 0x18000
jne 0x101714ef
xor edx, edx
jmp 0x101714f4
mov edx, 1
mov ecx, dword [esp + 0xb4]
push ecx
lea ecx, [ebp + 0x14c]
mov eax, edi
call fcn.1001f3c0
cmp byte [ebp + 0x19d], 0
push esi
je 0x10171558
lea edi, [ebp + 0xc4]
mov eax, edi
call fcn.10173330
test al, al
je 0x10171594
test dword [esp + 0xc0], 0x18000
jne 0x10171543
mov eax, dword [esp + 0xb4]
xor edx, edx
push eax
lea ecx, [ebp + 0x16c]
jmp 0x1017158d
mov eax, dword [esp + 0xb4]
mov edx, 1
push eax
lea ecx, [ebp + 0x16c]
jmp 0x1017158d
lea edi, [ebp + 0xd4]
mov eax, edi
call fcn.10173330
test al, al
je 0x10171594
test dword [esp + 0xc0], 0x18000
jne 0x1017157a
xor edx, edx
jmp 0x1017157f
mov edx, 1
mov ecx, dword [esp + 0xb4]
push ecx
lea ecx, [ebp + 0x15c]
mov eax, edi
call fcn.1001f3c0
mov ecx, dword [ebp + 0x74]
mov edx, dword [ebx + 4]
mov edi, dword [ebp + 0x5c]
xor eax, eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov eax, dword [ebx + 0xc]
push eax
push ecx
push edx
push edi
lea edx, [esp + 0xa0]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov byte [esp + 0x2f], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0xa8], 5
cmp byte [ebp + 0x18c], 0
je 0x101716b5
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esi]
mov dword [esp + 0x7c], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x60], eax
push edx
lea eax, [esp + 0x78]
mov dword [esp + 0x68], ecx
xor edi, edi
push eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call dword [sym.imp.USER32.dll_IntersectRect]
cmp dword [esp + 0x38], edi
jne 0x1017167b
cmp dword [esp + 0x40], edi
jne 0x1017167b
cmp dword [esp + 0x3c], edi
jne 0x1017167b
cmp dword [esp + 0x44], edi
je 0x101716b5
mov eax, dword [ebx + 4]
sub eax, dword [esi + 4]
mov ebx, dword [ebx]
sub ebx, dword [esi]
push eax
push ebx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x33], 1
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov ecx, dword [esp + 0xb4]
push eax
push ecx
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov byte [esp + 0xa8], 6
xor edi, edi
mov eax, dword [ebp + 0x68]
cmp eax, esi
mov dword [esp + 0x28], edi
je 0x1017174b
mov ecx, dword [ebp + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x1017174b
cmp edi, dword [ebp + 0x17c]
je 0x10171746
mov eax, dword [ebp + 0x68]
cmp eax, esi
je 0x1017171f
mov ecx, dword [ebp + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10171725
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x68]
mov edx, edi
imul edx, edx, 0xcc
cmp byte [edx + eax + 0x10], 0
jne 0x10171746
lea ebx, [esp + 0x28]
lea esi, [esp + 0x18]
call fcn.10029280
xor esi, esi
add edi, 1
jmp 0x101716cd
mov eax, dword [ebp + 0x68]
cmp eax, esi
jne 0x10171756
xor eax, eax
jmp 0x1017176e
mov ecx, dword [ebp + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, dword [ebp + 0x17c]
cmp ebx, eax
lea edi, [ebp + 0x17c]
jae 0x101717c4
mov eax, dword [ebp + 0x68]
cmp eax, esi
je 0x101717a1
mov ecx, dword [ebp + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x101717a7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 0x68]
imul ebx, ebx, 0xcc
cmp byte [ebx + ecx + 0x10], 0
jne 0x101717c4
mov ebx, edi
lea esi, [esp + 0x18]
call fcn.10029280
xor esi, esi
mov ecx, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x14], edi
cmp ecx, esi
mov eax, dword [esp + 0x20]
je 0x10171d9b
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x10171d9b
mov ecx, dword [ecx + edi*4]
mov eax, ebp
call fcn.10174010
cmp byte [ebp + 0x19c], 0
mov byte [esp + 0x30], al
jne 0x1017193b
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10171817
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x10171821
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x68]
test eax, eax
mov esi, dword [ecx + edi*4]
je 0x10171847
mov ecx, dword [ebp + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1017184d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0xbc]
imul esi, esi, 0xcc
add esi, dword [ebp + 0x68]
push edx
mov eax, esi
call fcn.10173330
test al, al
je 0x10171d87
cmp byte [ebp + 0x19c], 0
mov edi, dword [esp + 0x14]
jne 0x1017193b
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10171893
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x101718a1
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call edi
mov ecx, dword [esp + 0x1c]
jmp 0x101718a7
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebp + 0x17c]
mov eax, dword [esp + 0x14]
cmp dword [ecx + eax*4], ebx
jne 0x10171945
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x10171aa1
mov esi, dword [ebp + 0x6c]
sub esi, eax
mov eax, 0xa0a0a0a1
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x10171aa1
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xb4]
push ecx
push 2
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
mov dword [eax], edx
mov byte [esp + 0xb4], 9
mov eax, dword [ebp + 0x68]
test eax, eax
mov esi, dword [ebp + 0x17c]
je 0x1017192d
mov ecx, dword [ebp + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1017192f
call edi
mov eax, dword [ebp + 0x1a4]
push eax
jmp 0x10171a85
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ecx, ecx
je 0x10171958
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x1017195e
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x68]
test eax, eax
mov edx, dword [esp + 0x14]
mov esi, dword [ecx + edx*4]
je 0x10171988
mov ecx, dword [ebp + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1017198a
call edi
imul esi, esi, 0xcc
add esi, dword [ebp + 0x68]
lea eax, [esp + 0x90]
push eax
mov eax, esi
call fcn.10173330
test al, al
je 0x10171d87
cmp byte [ebp + 0x19c], 0
mov esi, dword [esp + 0x14]
jne 0x10171a1c
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x101719cc
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x101719d2
call edi
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + esi*4]
cmp ecx, dword [ebp + 0x188]
jne 0x10171a1c
mov edx, dword [esp + 0x30]
push edx
push 1
push ecx
mov ecx, dword [esp + 0xc0]
mov eax, esp
mov dword [esp + 0x34], esp
mov dword [eax], ecx
mov byte [esp + 0xb4], 7
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10171a11
mov ecx, dword [esp + 0x2c]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x10171a17
call edi
mov eax, dword [esp + 0x28]
mov esi, dword [eax + esi*4]
jmp 0x10171a59
mov eax, dword [esp + 0x30]
push eax
push 0
push ecx
mov ecx, dword [esp + 0xc0]
mov eax, esp
mov dword [esp + 0x34], esp
mov dword [eax], ecx
mov byte [esp + 0xb4], 8
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x10171a50
mov eax, dword [esp + 0x2c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10171a56
call edi
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + esi*4]
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x10171a7c
mov ecx, dword [ebp + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x10171a7e
call edi
mov edx, dword [ebp + 0x1a4]
push edx
imul esi, esi, 0xcc
add esi, dword [ebp + 0x68]
mov byte [esp + 0xb8], 6
mov ecx, esi
call fcn.10174f30
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov esi, dword [esp + 0x14]
je 0x10171ab6
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10171abc
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x68]
test eax, eax
mov ebx, dword [ecx + esi*4]
je 0x10171ae6
mov esi, dword [ebp + 0x6c]
sub esi, eax
mov eax, 0xa0a0a0a1
imul esi
add edx, esi
mov esi, dword [esp + 0x14]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10171aec
call edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0xe4]
imul ebx, ebx, 0xcc
mov eax, dword [ebp + 0x68]
add edx, 0x10
cmp dword [ebx + eax + 0x5c], edx
jl 0x10171d8b
test ecx, ecx
je 0x10171b19
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10171b1f
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x68]
test eax, eax
mov ebx, dword [ecx + esi*4]
je 0x10171b49
mov esi, dword [ebp + 0x6c]
sub esi, eax
mov eax, 0xa0a0a0a1
imul esi
add edx, esi
mov esi, dword [esp + 0x14]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10171b4f
call edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x68]
imul ebx, ebx, 0xcc
mov edx, dword [ebx + edx + 0x64]
cmp edx, dword [ebp + 0xec]
mov eax, dword [esp + 0x20]
jge 0x10171d8b
cmp byte [ebp + 0x19c], 0
je 0x10171bd0
test ecx, ecx
je 0x10171b82
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10171b88
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x68]
test eax, eax
mov ebx, dword [ecx + esi*4]
je 0x10171bb2
mov esi, dword [ebp + 0x6c]
sub esi, eax
mov eax, 0xa0a0a0a1
imul esi
add edx, esi
mov esi, dword [esp + 0x14]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10171bb8
call edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x68]
imul ebx, ebx, 0xcc
cmp byte [ebx + edx + 0x10], 0
mov eax, dword [esp + 0x20]
jne 0x10171d8b
test ecx, ecx
je 0x10171bdd
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10171be3
call edi
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + esi*4]
mov eax, ebp
call fcn.10174010
test al, al
je 0x10171d87
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10171c0a
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10171c10
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + esi*4]
cmp eax, dword [ebp + 0x188]
jne 0x10171d0e
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp + 0x1a0]
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x3c], edx
je 0x10171c61
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10171c67
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [ecx + eax*4]
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x10171c91
mov ecx, dword [ebp + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x10171c93
call edi
mov ecx, dword [ebp + 0xec]
imul esi, esi, 0xcc
add esi, dword [ebp + 0x68]
push ecx
mov ecx, dword [ebp + 0xe4]
lea ebx, [esp + 0x3c]
mov eax, esi
call fcn.10174b10
test eax, 0x400
je 0x10171cdd
mov edx, dword [esp + 0xb4]
push 1
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], edx
mov byte [esp + 0xb0], 0xa
mov esi, dword [ebp + 0x188]
jmp 0x10171d4a
push 0
push ecx
mov ecx, dword [esp + 0xbc]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], ecx
mov byte [esp + 0xb0], 0xb
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10171d3d
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x1c], eax
jmp 0x10171d3b
push 0
push ecx
mov ecx, dword [esp + 0xbc]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], ecx
mov byte [esp + 0xb0], 0xc
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10171d3d
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10171d43
call edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov esi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x10171d6d
mov ecx, dword [ebp + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x10171d6f
call edi
imul esi, esi, 0xcc
add esi, dword [ebp + 0x68]
mov byte [esp + 0xb0], 6
mov ecx, esi
call fcn.101751c0
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
xor esi, esi
jmp 0x101717ce
cmp byte [esp + 0x2f], 0
je 0x10171db1
mov eax, dword [esp + 0xb4]
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0xb4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [esp + 0xc4], 0
jne 0x10171dde
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x70]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x10171df7
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov byte [esp + 0xa8], 4
mov eax, dword [esp + 0x34]
cmp eax, esi
je 0x10171e22
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, esi
je 0x10171e22
mov dword [esp + 0x34], esi
mov byte [esp + 0xa8], 1
mov eax, dword [esp + 0x50]
cmp eax, esi
je 0x10171e41
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, esi
je 0x10171e41
mov dword [esp + 0x68], esi
mov byte [esp + 0xa8], 0
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x10171e5c
push eax
mov dword [esp + 0x50], esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esp + 0xa8], 0xffffffff
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 0x18