Function at 0x10108492
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x2940]
mov eax, 0x2940
call fcn.101596a0
push 0xffffffffffffffff
push 0x1018ddca
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x101c6444]
xor eax, ebp
mov dword [ebp + 0x293c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x2948]
push 0xf
pop esi
xor edi, edi
push edi
lea ecx, [ebp + 0x2800]
mov dword [ebp + 0x2818], esi
call fcn.10001ce0
push edi
lea ecx, [ebp + 0x281c]
mov dword [ebp - 4], edi
mov dword [ebp + 0x2834], esi
call fcn.10001ce0
push 0x103
lea eax, [ebp + 0x2839]
push edi
push eax
mov byte [ebp - 4], 1
mov byte [ebp + 0x2838], 0
call fcn.101580b0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x2838]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp + 0x2838]
push eax
lea ecx, [ebp + 0x281c]
call fcn.10001af0
mov eax, dword [ebp + 0x2830]
dec eax
push eax
lea ecx, [ebp + 0x281c]
call fcn.10027aa0
cmp byte [eax], 0x5c
je 0x1010858c
push 0x10198048
lea ecx, [ebp - 0x40]
call fcn.100019a0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp + 0x281c]
mov byte [ebp - 4], 2
call fcn.1000c960
push edi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.10001b20
push str.iphlpapi.dll
lea eax, [ebp + 0x281c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1002ced0
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp + 0x2800]
mov byte [ebp - 4], 3
call fcn.10001a10
push edi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.10001b20
cmp dword [ebp + 0x2818], 0x10
mov eax, dword [ebp + 0x2804]
jae 0x101085db
lea eax, [ebp + 0x2804]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x1010862c
xor bl, bl
push edi
push 1
lea ecx, [ebp + 0x281c]
call fcn.10001b20
push edi
push 1
lea ecx, [ebp + 0x2800]
call fcn.10001b20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x293c]
xor ecx, ebp
call fcn.101586e7
add ebp, 0x2940
leave
ret
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x101086b4
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp]
push ecx
mov dword [ebp - 0x24], 0x2800
call eax
test eax, eax
jne 0x101086b4
lea esi, [ebp]
mov dword [ebp - 0x14], 3
lea eax, [esi + 8]
push eax
call fcn.10108304
push 6
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1a]
push edi
push eax
call fcn.101580b0
add esp, 0x10
lea eax, [ebp - 0x1a]
push eax
mov ecx, ebx
call fcn.10107f66
test al, al
jne 0x10108696
cmp dword [esi + 0x1a0], 6
jne 0x101086ae
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jle 0x101086ae
xor eax, eax
mov cl, byte [esi + eax + 0x194]
mov byte [ebx + eax], cl
inc eax
cmp eax, 6
jl 0x10108698
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov esi, dword [esi]
cmp esi, edi
jne 0x1010865b
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
lea eax, [ebp - 0x1a]
push edi
push eax
call fcn.101580b0
add esp, 0xc
lea eax, [ebp - 0x1a]
push eax
mov ecx, ebx
call fcn.10107f66
mov bl, al
neg bl
sbb bl, bl
inc bl
jmp 0x101085eb