Function at 0x1010620a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x2940]
mov eax, 0x2940
call fcn.1015bfa0
push 0xffffffffffffffff
push 0x1018fed2
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x101cd7b4]
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.10002d40
push edi
lea ecx, [ebp + 0x281c]
mov dword [ebp - 4], edi
mov dword [ebp + 0x2834], esi
call fcn.10002d40
push 0x103
lea eax, [ebp + 0x2839]
push edi
push eax
mov byte [ebp - 4], 1
mov byte [ebp + 0x2838], 0
call fcn.101596b0
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.1002f5d0
mov eax, dword [ebp + 0x2830]
dec eax
push eax
lea ecx, [ebp + 0x281c]
call fcn.10025720
cmp byte [eax], 0x5c
je 0x10106304
push 0x1019a068
lea ecx, [ebp - 0x40]
call fcn.10006620
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp + 0x281c]
mov byte [ebp - 4], 2
call fcn.1000a7c0
push edi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.10003eb0
push str.iphlpapi.dll
lea eax, [ebp + 0x281c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1002a900
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp + 0x2800]
mov byte [ebp - 4], 3
call fcn.10005470
push edi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.10003eb0
cmp dword [ebp + 0x2818], 0x10
mov eax, dword [ebp + 0x2804]
jae 0x10106353
lea eax, [ebp + 0x2804]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x101063a4
xor bl, bl
push edi
push 1
lea ecx, [ebp + 0x281c]
call fcn.10003eb0
push edi
push 1
lea ecx, [ebp + 0x2800]
call fcn.10003eb0
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.10159cce
add ebp, 0x2940
leave
ret
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1010642c
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp]
push ecx
mov dword [ebp - 0x24], 0x2800
call eax
test eax, eax
jne 0x1010642c
lea esi, [ebp]
mov dword [ebp - 0x14], 3
lea eax, [esi + 8]
push eax
call fcn.1010607c
push 6
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1a]
push edi
push eax
call fcn.101596b0
add esp, 0x10
lea eax, [ebp - 0x1a]
push eax
mov ecx, ebx
call fcn.10105cfb
test al, al
jne 0x1010640e
cmp dword [esi + 0x1a0], 6
jne 0x10106426
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jle 0x10106426
xor eax, eax
mov cl, byte [esi + eax + 0x194]
mov byte [ebx + eax], cl
inc eax
cmp eax, 6
jl 0x10106410
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov esi, dword [esi]
cmp esi, edi
jne 0x101063d3
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
lea eax, [ebp - 0x1a]
push edi
push eax
call fcn.101596b0
add esp, 0xc
lea eax, [ebp - 0x1a]
push eax
mov ecx, ebx
call fcn.10105cfb
mov bl, al
neg bl
sbb bl, bl
inc bl
jmp 0x10106363