Function at 0x101767c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd8
push ebx
push ebp
mov ebp, dword [esp + 0xe8]
push esi
push edi
push ebp
call fcn.10180e30
mov esi, eax
xor edi, edi
add esp, 4
mov dword [esp + 0x24], esi
lea ebx, [esi + 0xfc]
cmp ebx, edi
je 0x10176fa1
cmp dword [ebx + 4], edi
je 0x10176fa1
mov eax, dword [esp + 0xf4]
cmp eax, 0xe
jl 0x10176811
cmp eax, 0x11
jg 0x10176811
mov eax, 1
jmp 0x10176813
xor eax, eax
push eax
push ebx
mov ecx, esi
call fcn.10180900
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0xf4]
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
lea eax, [edx - 1]
mov dword [esp + 0x38], edi
cmp eax, 0x10
mov dword [esp + 0x3c], edi
ja case.0x1017685a.7
xor ecx, ecx
mov cl, byte [eax + 0x10176fc8]
jmp dword [ecx*4 + 0x10176fac]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x14]
test edx, edx
mov dword [esp + 0x14], ecx
je 0x1017688f
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x1017689d
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 0x2c]
test edx, edx
je 0x101768ad
mov edx, dword [ebp + 0x24]
add edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x101768bd
mov eax, dword [ebp + 0x30]
add eax, ecx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x10]
call fcn.101cda91
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10180a50
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x34], eax
push eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x84]
mov dword [esp + 0x3c], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x48], edx
call fcn.101cb3ce
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x114], ecx
mov dword [esi + 0x118], edx
jmp case.0x1017685a.7
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 4]
push eax
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_SetPixelV]
push edi
push esi
push edi
lea edx, [esp + 0x3c]
push esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov dword [esp + 0x20], 1
jmp case.0x1017685a.7
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x24]
mov ebp, dword [ebp + 0x30]
push edi
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, ebx
mov dword [esp + 0x58], eax
call fcn.101cb3ce
mov edx, dword [esp + 0x4c]
push ebp
push edx
mov ecx, ebx
call fcn.101cb41a
mov eax, dword [esp + 0x4c]
push ebp
push eax
push edi
lea ecx, [esp + 0x3c]
push esi
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov dword [esp + 0x20], 1
jmp case.0x1017685a.7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
call fcn.101cda91
mov esi, dword [esp + 0xf4]
cmp esi, 4
jne 0x101769f1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [ebx + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Ellipse]
jmp 0x10176b43
cmp esi, 8
jne 0x10176a19
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
jmp 0x10176b43
cmp esi, 9
jne 0x10176a6e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x10176a2f
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jne 0x10176a40
inc eax
mov dword [esp + 0x18], eax
mov ecx, dword [ebx + 8]
push 2
push ecx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
call fcn.101cb874
test eax, eax
je 0x10176a59
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x10176b4b
cmp esi, 0xa
jne 0x10176aa9
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x3c]
test ecx, ecx
jne 0x10176a81
mov ebp, eax
jmp 0x10176a84
mov ebp, dword [ebp + 0x48]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebp
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_RoundRect]
jmp 0x10176b43
cmp esi, 0xb
jne 0x10176ac2
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvertRect]
jmp 0x10176b4b
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x54]
mov ebp, dword [ebp + 0x60]
sub esi, 5
je 0x10176b21
dec esi
je 0x10176afd
dec esi
jne 0x10176b43
push ebp
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Pie]
jmp 0x10176b43
push ebp
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Chord]
jmp 0x10176b43
push ebp
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [ebx + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Arc]
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jmp case.0x1017685a.7
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.101671a0
mov ebx, eax
mov eax, dword [esp + 0x50]
cdq
sub eax, edx
add esp, 8
mov esi, eax
mov eax, dword [ebp + 0x20]
sar esi, 1
test eax, eax
je 0x10176b9e
mov ebp, dword [ebp + 0x18]
cmp esi, ebp
jl 0x10176b9e
mov esi, ebp
cmp esi, 1
jle case.0x1017685a.7
xor edi, edi
xor edx, edx
mov ebp, closesocket
mov ecx, ebx
test esi, esi
mov dword [esp + 0x20], ebp
jle 0x10176bed
mov dword [esp + 0x2c], esi
mov eax, dword [ecx]
cmp eax, edi
jle 0x10176bc6
mov edi, eax
cmp eax, dword [esp + 0x20]
jge 0x10176bd0
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
cmp eax, edx
jle 0x10176bd9
mov edx, eax
cmp eax, ebp
jge 0x10176bdf
mov ebp, eax
mov eax, dword [esp + 0x2c]
add ecx, 8
dec eax
mov dword [esp + 0x2c], eax
jne 0x10176bbe
push edx
mov edx, dword [esp + 0x24]
push edi
push ebp
lea eax, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x24]
push esi
push ebx
mov dword [esp + 0x28], 1
mov edx, dword [ecx + 0x100]
lea eax, [ecx + 0xfc]
push edx
call dword [sym.imp.GDI32.dll_Polygon]
jmp case.0x1017685a.7
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x114]
mov edx, dword [eax + 0x118]
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x40], ecx
cmp eax, 0x11
mov dword [esp + 0x44], edx
jne 0x10176c66
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10176c58
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x10176c66
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x44], ecx
mov edi, 0x10367c88
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
lea edi, [esp + 0x84]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 8]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0xf4]
dec ecx
cmp eax, 0x11
jne 0x10176ccf
sub ecx, 2
test ecx, ecx
jle 0x10176f00
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x48], ecx
sub eax, 0x11
neg eax
sbb eax, eax
and al, 0xfe
add eax, 3
lea edx, [eax + eax*2]
lea ebp, [ebp + edx*4 + 8]
mov dword [esp + 0x2c], ebp
jmp 0x10176cff
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp]
push eax
call fcn.10176270
add esp, 4
test eax, eax
je 0x10176d25
lea ecx, [esp + 0x84]
add ebp, 0xfffffff8
push ecx
push ebp
call fcn.10176520
add esp, 8
jmp 0x10176d81
mov eax, dword [ebp]
cmp eax, reloc.WS2_32.dll_connect
jne 0x10176d34
mov ebp, dword [ebp - 8]
jmp 0x10176d88
cmp eax, 0x80000002
jne 0x10176d51
mov eax, dword [ebp - 8]
lea edx, [esp + 0x84]
push edx
push eax
call fcn.101765d0
add esp, 8
jmp 0x10176d81
cmp eax, reloc.WS2_32.dll_closesocket
jne 0x10176d72
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea ecx, [esp + 0x84]
push ecx
push edx
push eax
call fcn.101766a0
add esp, 0xc
jmp 0x10176d81
test eax, eax
jne 0x10176ee6
mov byte [esp + 0x84], al
lea ebp, [esp + 0x84]
test ebp, ebp
je 0x10176ee6
mov al, byte [ebp]
test al, al
jne 0x10176dbe
mov eax, dword [esp + 0xf4]
cmp eax, 0x10
je 0x10176ee6
cmp eax, 0x11
je 0x10176ee6
mov ecx, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x50], ecx
xor esi, esi
jmp 0x10176e29
mov esi, ebp
cmp al, 0xd
je 0x10176dd0
cmp al, 0xa
je 0x10176dd0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10176dc0
mov al, byte [esi]
test al, al
je 0x10176ddf
mov byte [esp + 0x2b], al
mov byte [esi], 0
jmp 0x10176de1
xor esi, esi
cmp byte [ebp], 0
jne 0x10176df3
mov edx, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x50], edx
jmp 0x10176e29
lea eax, [esp + 0x10]
mov edi, ebp
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x2c]
push ebp
mov edx, dword [ecx + 0x104]
lea eax, [ecx + 0xfc]
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x50], eax
cmp byte [ebp], 0
je 0x10176ea6
mov ecx, dword [esp + 0x24]
mov edi, ebp
mov edx, dword [ecx + 0xfc]
lea eax, [ecx + 0xfc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x44]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x44]
push ebp
push eax
mov eax, dword [esp + 0x30]
push ecx
lea ecx, [eax + 0xfc]
call dword [edx + 0x5c]
test ebx, ebx
jne 0x10176e70
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10176ea6
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x6c], eax
lea ecx, [ebx + eax]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x70], eax
add edx, eax
mov dword [esp + 0x74], ecx
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_UnionRect]
test esi, esi
jne 0x10176eb4
cmp dword [esp + 0xf4], 0xe
jne 0x10176ee2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
test esi, esi
lea edx, [eax + ecx + 2]
mov dword [esp + 0x44], edx
je 0x10176ee6
mov al, byte [esp + 0x2b]
mov byte [esi], al
mov al, byte [esi + 1]
inc esi
cmp al, 0xa
jne 0x10176ed7
inc esi
test esi, esi
mov ebp, esi
je 0x10176ee6
jmp 0x10176d90
add dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
add ecx, 0xc
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], eax
jne 0x10176cfb
cmp dword [esp + 0xf4], 0x11
je case.0x1017685a.7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [eax + 0x114], ecx
mov dword [eax + 0x118], edx
mov esi, dword [esp + 0x24]
mov ecx, esi
lea eax, [esi + 0xfc]
push eax
call fcn.10180a10
lea ecx, [esp + 0x30]
call fcn.101cda91
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10176f81
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10176f81
mov eax, dword [esi + 0x68]
cmp eax, 1
jge 0x10176f59
mov eax, 1
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ebx, eax
sub edi, eax
add edx, eax
add ecx, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x10176fa1
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x30]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret