Function at 0x10001330
Capabilities:
Get networking parameters

Disassembly:
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push 0x248
push 0x40
call esi
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x248
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
jne 0x10001370
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 8]
push ecx
push 0x40
call esi
mov edi, eax
lea edx, [esp + 8]
push edx
push edi
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
je 0x10001389
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
lea eax, [edi + 0x110]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call ebx
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 1
mov edx, dword [esi + 8]
mov ecx, esi
push edx
mov dword [esp + 0x1c], eax
call fcn.100034c0
mov edi, dword [edi + 0x10c]
test edi, edi
je 0x100013df
lea eax, [edi + 4]
push eax
call ebx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x18]
push ecx
push 1
push edx
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.100034c0
mov edi, dword [edi]
test edi, edi
jne 0x100013bd
push str.127.0.0.1
call ebx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x100014d9
mov edx, dword [esi + 4]
test edx, edx
je 0x10001413
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x10001418
mov ecx, 1
test edx, edx
jne 0x10001420
xor eax, eax
jmp 0x10001425
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
jge 0x10001431
xor eax, eax
lea edx, [eax*4]
push ebp
push edx
call fcn.10005220
add esp, 4
mov ebx, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebx
push edi
push eax
call fcn.100036d0
lea ecx, [esp + 0x1c]
mov ebp, eax
push ecx
push 1
push ebp
mov ecx, esi
call fcn.10003700
mov edx, dword [esi + 8]
add ebp, 4
push ebp
push edx
push edi
mov ecx, esi
call fcn.100036d0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.100034b0
mov edx, dword [esi + 4]
push edx
call fcn.10005209
mov eax, dword [esp + 0x18]
add esp, 4
lea ecx, [ebx + eax*4]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi + 0xc], ecx
pop ebp
jne 0x100014b9
xor ecx, ecx
mov dword [esi + 4], ebx
mov eax, 1
lea edx, [ebx + ecx*4 + 4]
pop ebx
mov dword [esi + 8], edx
pop edi
pop esi
add esp, 8
ret 4
mov ecx, dword [esi + 8]
mov dword [esi + 4], ebx
sub ecx, eax
mov eax, 1
sar ecx, 2
lea edx, [ebx + ecx*4 + 4]
pop ebx
mov dword [esi + 8], edx
pop edi
pop esi
add esp, 8
ret 4
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x10001527
lea edx, [edi + 4]
mov ecx, esi
push edx
push eax
push edi
call fcn.100036d0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x18]
mov edx, eax
push ecx
sub edx, edi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.10003700
mov eax, dword [esi + 8]
cmp edi, eax
je 0x10001561
mov edx, dword [esp + 0x18]
mov dword [edi], edx
add edi, 4
cmp edi, eax
jne 0x10001518
jmp 0x10001561
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.100036d0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x1000154d
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x1000153e
lea eax, [edi + 4]
cmp edi, eax
je 0x10001561
mov ecx, dword [esp + 0x18]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x10001554
mov eax, dword [esi + 8]
pop ebx
add eax, 4
pop edi
mov dword [esi + 8], eax
mov eax, 1
pop esi
add esp, 8
ret 4