Function at 0x1003e42
Capabilities:
Get hostname
Get local ipv4 addresses
Get networking parameters
Get routing table

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x620
xor ebx, ebx
push 0x40
mov dword [eax], ebx
call edi
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp + 8]
mov dword [eax], esi
je 0x1003e8f
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push 6
push ebx
call sub.iphlpapi.dll_GetAdaptersAddresses
push dword [ebp - 0x34]
push 0x40
call edi
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x28], edi
jne 0x1003e9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004394
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
push 6
push ebx
call sub.iphlpapi.dll_GetAdaptersAddresses
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1003ebb
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1004391
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 4]
push eax
push esi
push 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x100
call edi
test eax, eax
jne 0x1003ef1
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
jmp 0x100404c
lea ecx, [ebp - 4]
push ecx
lea eax, [esi + 0x200]
push eax
push 2
mov dword [ebp - 4], 0x100
call edi
test eax, eax
jne 0x1003f12
mov word [esi + 0x200], bx
lea eax, [ebp - 0x98]
push eax
call sub.iphlpapi.dll_GetIpStatistics
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1003f33
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
jmp 0x100434a
xor eax, eax
cmp dword [ebp - 0x98], 1
sete al
xor edi, edi
mov dword [esi + 0x604], eax
mov dword [ebp - 8], 0x3e8
cmp edi, ebx
je 0x1003f59
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x2c], edi
je 0x1003f8d
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], eax
mov dword [ebp - 8], ecx
je 0x1003f4e
jmp 0x1003f94
mov dword [ebp + 8], 8
cmp dword [ebp + 8], ebx
je 0x1003fa7
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
jmp 0x100434a
mov eax, dword [edi + 0x240]
mov dword [esi + 0x608], eax
mov eax, dword [edi + 0x244]
push edi
mov dword [esi + 0x60c], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push ebx
push 0x10003
mov dword [ebp - 0x2c], ebx
call sub.DNSAPI.dll_DnsQueryConfigAllocEx
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10040ae
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ecx + 4], eax
mov dword [ebp - 0xc], eax
jbe 0x10040ae
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, ecx
add eax, 8
mov dword [ebp + 8], eax
mov ebx, 0xfde9
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push dword [ecx]
push eax
push ebx
call edi
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add dword [ebp + 8], 4
cmp ecx, dword [eax + 4]
jb 0x1004007
cmp dword [ebp - 4], 0
je 0x10040ae
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esi + 0x614], eax
jne 0x100405a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x100434a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp dword [edx + 4], ecx
mov dword [ebp - 0xc], ecx
jbe 0x10040ae
mov ecx, edx
add ecx, 8
mov dword [ebp + 8], ecx
jmp 0x100407d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub eax, ecx
push eax
mov eax, dword [esi + 0x614]
lea eax, [eax + ecx*2]
push eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push dword [eax]
push 0
push ebx
call edi
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add dword [ebp + 8], 4
cmp ecx, dword [eax + 4]
jb 0x100407a
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.iphlpapi.dll_NhpAllocateAndGetInterfaceInfoFromStack
test eax, eax
mov dword [ebp + 8], eax
je 0x10040db
mov eax, dword [ebp + 0xc]
mov dword [eax], 7
jmp 0x100434a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], 0x3e8
cmp dword [ebp - 0x1c], 0
je 0x10040f7
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x100410d
call ebx
jmp 0x1004119
push 0
lea ecx, [ebp - 8]
push ecx
push eax
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
je 0x10040e8
mov dword [ebp - 8], 0x3e8
cmp dword [ebp - 0x20], 0
je 0x1004134
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x100414a
call ebx
jmp 0x1004156
push 1
lea ecx, [ebp - 8]
push ecx
push eax
call sub.iphlpapi.dll_GetIpAddrTable
cmp eax, 0x7a
mov dword [ebp + 8], eax
je 0x1004125
test eax, eax
je 0x1004170
mov eax, dword [ebp + 0xc]
mov dword [eax], 8
jmp 0x100434a
mov dword [ebp - 8], 0x3e8
cmp dword [ebp - 0x14], 0
je 0x1004186
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x100419c
call ebx
jmp 0x10041a8
push 1
lea ecx, [ebp - 8]
push ecx
push eax
call sub.iphlpapi.dll_GetIfTable
cmp eax, 0x7a
mov dword [ebp + 8], eax
je 0x1004177
test eax, eax
je 0x10041c2
mov eax, dword [ebp + 0xc]
mov dword [eax], 5
jmp 0x100432c
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], 0x3e8
cmp dword [ebp - 0x18], 0
je 0x10041de
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
push 0x40
call edi
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x10041f0
call ebx
jmp 0x10041fc
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
call sub.iphlpapi.dll_GetInterfaceInfo
cmp eax, 0x7a
mov dword [ebp + 8], eax
je 0x10041cf
test eax, eax
je 0x1004216
mov eax, dword [ebp + 0xc]
mov dword [eax], 6
jmp 0x100432c
call fcn.01003da4
push dword [ebp - 0x28]
mov dword [esi + 0x610], eax
call fcn.01003e03
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx]
cmp eax, 1
jbe 0x100432c
dec eax
mov dword [esi + 0x618], eax
shl eax, 2
push eax
push 0x40
call edi
test eax, eax
mov dword [esi + 0x61c], eax
jne 0x100425a
call ebx
mov dword [ebp + 8], eax
jmp 0x100432c
mov edi, dword [ebp - 0x14]
xor ebx, ebx
cmp dword [edi], ebx
mov dword [ebp - 0xc], ebx
jbe 0x10042e4
add edi, 0x208
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
and dword [ebp - 0x30], 0
test eax, eax
mov dword [ebp - 0x38], eax
jbe 0x10042d1
mov ecx, dword [edi - 4]
lea eax, [edx + 4]
cmp ecx, dword [eax]
je 0x1004298
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
add eax, 0x104
cmp dword [ebp - 0x30], edx
jb 0x1004282
jmp 0x10042d1
cmp dword [edi], 0x18
je 0x10042d1
push dword [ebp + 0xc]
lea eax, [edi - 0x204]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x3c]
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push eax
mov eax, dword [esi + 0x61c]
lea eax, [eax + ebx*4]
push eax
push esi
call fcn.010039c4
test eax, eax
mov dword [ebp + 8], eax
jne 0x10042e4
inc ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add edi, 0x35c
cmp ecx, dword [eax]
jb 0x100426c
mov edi, dword [ebp - 0x28]
xor ecx, ecx
cmp dword [edi + 4], ecx
jne 0x100431f
cmp dword [edi + 0x48], ecx
je 0x100431f
mov eax, dword [edi + 0x40]
cmp eax, 0x18
je 0x100431f
cmp eax, 0x83
jne 0x1004307
cmp dword [edi + 0x10], ecx
je 0x100431f
mov eax, dword [esi + 0x61c]
push edi
lea eax, [eax + ebx*4]
push eax
call fcn.01003c9b
test eax, eax
mov dword [ebp + 8], eax
jne 0x1004326
inc ebx
mov edi, dword [edi + 8]
test edi, edi
jne 0x10042e7
mov dword [esi + 0x618], ebx
cmp dword [ebp - 0x14], 0
je 0x100433b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], 0
je 0x100434a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
cmp dword [ebp - 0x24], edi
je 0x100435c
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x20], edi
je 0x1004366
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x1c], edi
je 0x1004370
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x2c], edi
je 0x100437a
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x10], edi
je 0x1004391
push 0x10003
push dword [ebp - 0x10]
call sub.DNSAPI.dll_DnsFreeConfigStructure
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8