Function at 0x106cc8b
Capabilities:
Get common file path
Get networking parameters
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x238
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 0x74]
and dword [ebp + 0x68], 0
push ebx
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
test eax, eax
push esi
push edi
jne 0x106ccb9
mov eax, 0xc000000d
jmp 0x106d177
and dword [eax], 0
push dword [ebp + 0x7c]
lea eax, [ebp + 0x18]
push eax
call fcn.0106a987
push dword [ebp + 0x7c]
mov edi, eax
lea eax, [ebp + 0x3c]
push eax
mov dword [ebp + 0x2c], edi
call fcn.0106b38d
mov dword [ebp + 0x44], eax
lea eax, [ebp + 0x5c]
push eax
call fcn.0106bda3
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0106bec3
mov esi, eax
lea eax, [ebp + 0x4c]
push eax
mov dword [ebp + 0x20], esi
call fcn.0106bdeb
mov ebx, eax
lea eax, [ebp + 0x64]
push eax
push esi
push dword [ebp + 0x7c]
mov dword [ebp + 0x38], ebx
call fcn.0106c137
imul edi, edi, 0x130
imul ebx, ebx, 0x28c
mov ecx, dword [ebp + 0x40]
mov edx, eax
imul ecx, ecx, 0xa60
imul edx, edx, 0x34
mov dword [ebp + 0x54], eax
lea eax, [esi + esi*8]
shl eax, 2
mov dword [ebp + 0x30], eax
add eax, edx
add eax, edi
add eax, ebx
mov dword [ebp + 0x58], edx
mov edx, dword [ebp + 0x44]
test edx, edx
lea esi, [eax + ecx + 0x1f0]
mov eax, dword [ebp + 0x3c]
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x24], edi
jle 0x106cd64
mov ecx, dword [eax]
add dword [ebp + 0x68], ecx
add eax, ecx
dec edx
jne 0x106cd5a
add esi, dword [ebp + 0x68]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x106cdda
lea eax, [ebp + 0x48]
push eax
push 0
mov dword [ebx], 0x55667700
mov dword [ebx + 4], 0x11223344
mov dword [ebx + 8], esi
call sub.iphlpapi.dll_GetNetworkParams
jmp 0x106cdba
lea eax, [ebp + 0x48]
push eax
push esi
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
mov dword [ebp + 0x50], eax
jne 0x106cde4
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 0x48]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x106cd9c
push 0x1015f70
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
mov eax, 0xc0000017
jmp 0x106d177
test eax, eax
je 0x106cdfc
push 0x10168bc
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [ebp + 0x50]
pop ecx
jmp 0x106d177
mov ecx, ebx
sub ecx, esi
mov eax, esi
lea edx, [ecx + 0x14]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x106ce05
lea eax, [esi + 0x84]
mov ecx, ebx
sub ecx, eax
lea edx, [ecx + 0x98]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x106ce1f
lea eax, [ebp + 0x34]
lea edi, [ebx + 0x178]
and dword [edi], 0
push eax
lea esi, [ebp + 0x50]
mov dword [ebx + 0x11c], 1
call fcn.0106c491
xor esi, esi
test eax, eax
je 0x106ce62
mov eax, dword [ebp + 0x50]
mov dword [ebx + 0x128], eax
mov eax, dword [ebp + 0x34]
mov dword [ebx + 0x12c], eax
jmp 0x106ce72
mov dword [ebx + 0x128], 1
mov dword [ebx + 0x12c], esi
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0xc8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x106cebf
mov eax, dword [ebp - 0xc4]
mov dword [ebx + 0x130], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebx + 0x134], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebx + 0x138], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebx + 0x13c], eax
jmp 0x106ced7
mov dword [ebx + 0x130], esi
mov dword [ebx + 0x134], esi
mov dword [ebx + 0x138], esi
mov dword [ebx + 0x13c], esi
call fcn.0106c569
push 0x1e
mov dword [ebx + 0x120], eax
pop ecx
xor eax, eax
mov dword [ebx + 0x124], esi
rep stosd dword es:[edi], eax
push 0x100
lea eax, [ebp - 0x1c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
neg eax
sbb al, al
lea esi, [ebx + 0xc]
mov edi, esi
push 0x4c
and eax, dword [ebp - 0x1c8]
mov byte [ebx + 0x140], al
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
xor edi, edi
push edi
push edi
push 4
call dword [sym.imp.ntdll.dll_NtPowerInformation]
test eax, eax
jne 0x106cf4d
mov al, byte [ebp - 0x31]
mov byte [esi], al
mov al, byte [ebp - 0x30]
mov byte [ebx + 0xd], al
mov al, byte [ebp - 0x2f]
mov byte [ebx + 0xe], al
mov al, byte [ebp - 0x2e]
mov byte [ebx + 0xf], al
mov al, byte [ebp - 0x2d]
mov byte [ebx + 0x10], al
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x18]
mov dword [ebx + 0x148], eax
mov eax, ecx
shr ecx, 2
mov dword [ebx + 0x14c], edi
mov edx, dword [ebp + 0x68]
lea edi, [ebx + 0x1f0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x44]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x14c]
mov dword [ebx + 0x150], eax
mov eax, dword [ebx + 0x148]
mov esi, dword [ebp + 0x3c]
imul eax, eax, 0x130
add eax, ecx
mov dword [ebx + 0x154], eax
lea edi, [eax + ebx + 0x1f0]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x5c]
mov dword [ebx + 0x158], eax
mov eax, dword [ebx + 0x154]
add eax, edx
mov dword [ebx + 0x15c], eax
lea edi, [eax + ebx + 0x1f0]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0x38]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x158]
mov ecx, dword [ebx + 0x15c]
imul eax, eax, 0xa60
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x30]
mov edi, dword [ebp + 0x54]
add eax, ecx
mov ecx, dword [ebp + 0x38]
mov dword [ebx + 0x160], ecx
mov ecx, dword [ebp + 0x1c]
add ecx, eax
mov dword [ebx + 0x164], eax
lea eax, [eax + ebx + 0x1f0]
push eax
push dword [ebp + 0x4c]
lea eax, [ecx + ebx + 0x1f0]
push esi
push eax
push dword [ebp + 0x7c]
add edx, ecx
mov dword [ebx + 0x170], edi
mov dword [ebx + 0x16c], ecx
mov dword [ebx + 0x168], esi
mov dword [ebx + 0x174], edx
lea edi, [edx + ebx + 0x1f0]
call fcn.0106c310
mov ecx, dword [ebp + 0x58]
mov esi, dword [ebp + 0x64]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [ebp + 0x5c], 0
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x106d08b
push dword [ebp + 0x5c]
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
jmp 0x106d091
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x7c], 0
je 0x106d0a1
push dword [ebp + 0x7c]
push 0
call edi
push eax
call esi
cmp dword [ebp + 0x4c], 0
je 0x106d0b1
push dword [ebp + 0x4c]
push 0
call edi
push eax
call esi
cmp dword [ebp + 0x64], 0
je 0x106d0c1
push dword [ebp + 0x64]
push 0
call edi
push eax
call esi
lea eax, [ebp + 0x60]
push eax
push 0x2001f
push 0
push 0x1016878
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x106d170
push 4
pop edi
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp + 0x54]
push eax
push 0
mov esi, 0x101685c
push esi
push dword [ebp + 0x60]
mov dword [ebp + 0x58], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x106d167
cmp dword [ebp + 0x54], edi
je 0x106d128
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1016824
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
jmp 0x106d167
xor eax, eax
inc eax
cmp dword [ebp + 0x7c], eax
je 0x106d167
push edi
mov dword [ebp + 0x7c], eax
lea eax, [ebp + 0x7c]
push eax
push edi
push 0
push esi
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x106d167
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x10167f0
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x78]
mov dword [eax], ebx
xor eax, eax
mov ecx, dword [ebp + 0x6c]
xor ecx, dword [ebp + 0x74]
pop edi
pop esi
pop ebx
call fcn.0105b9a4
add ebp, 0x70
leave
ret 8