Function at 0x41d940
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2454
call fcn.00414360
mov eax, dword [0x43e268]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2440], 0
jmp 0x41d972
mov eax, dword [ebp - 0x2440]
add eax, 1
mov dword [ebp - 0x2440], eax
cmp dword [ebp - 0x2440], 0x10
jge 0x41d99f
mov ecx, dword [ebp - 0x2440]
mov dword [ecx*4 + 0x441434], 0
mov edx, dword [ebp - 0x2440]
mov dword [ebp + edx*4 - 0x2438], 0
jmp 0x41d963
push 0x43fe60
push 1
lea eax, [ebp - 0x23f8]
push eax
push str.DNS_SERVERS
call fcn.0041be40
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x41daa1
push 0
lea edx, [ebp - 0x23f8]
push edx
call fcn.00419d10
add esp, 8
mov dword [ebp - 0x2444], eax
mov dword [ebp - 0x2448], 0
jmp 0x41d9ff
push 1
mov eax, dword [ebp - 0x2444]
push eax
call fcn.00419d10
add esp, 8
mov dword [ebp - 0x2444], eax
cmp dword [ebp - 0x2448], 0x10
jge 0x41daa1
mov ecx, dword [ebp - 0x2444]
movsx edx, byte [ecx]
test edx, edx
je 0x41daa1
mov eax, dword [ebp - 0x2444]
push eax
call fcn.00419740
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x41da74
mov edx, dword [ebp - 0x2444]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x244c], eax
mov eax, dword [ebp - 0x244c]
push eax
lea ecx, [ebp - 0x2438]
push ecx
call fcn.00419860
add esp, 8
movzx edx, al
test edx, edx
je 0x41da72
mov eax, dword [ebp - 0x2448]
add eax, 1
mov dword [ebp - 0x2448], eax
jmp 0x41da9c
mov ecx, dword [ebp - 0x2444]
push ecx
push str.Section__DNS_SERVERS__Invalid_Entry:__s_ignored
push 0x44bd18
call fcn.00407379
add esp, 0xc
push 1
push 0x44bd18
call fcn.0041b050
add esp, 8
jmp 0x41d9e8
push 0x248
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x243c], 0x248
lea edx, [ebp - 0x243c]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.IPHLPAPI.DLL_GetNetworkParams
cmp eax, 0x6f
jne 0x41daec
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x243c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x243c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.IPHLPAPI.DLL_GetNetworkParams
test eax, eax
jne 0x41dbdb
movsx edx, byte [0x4412b4]
test edx, edx
jne 0x41db20
mov eax, dword [ebp - 4]
push eax
push 0x4412b4
call fcn.00409330
add esp, 8
movsx ecx, byte [0x440eac]
test ecx, ecx
jne 0x41db54
mov edx, dword [ebp - 4]
add edx, 0x84
push edx
push 0x440eac
call fcn.00409330
add esp, 8
push 0x440eac
call fcn.00409210
add esp, 4
mov byte [0x440fac], al
movsx eax, byte [0x440eac]
test eax, eax
jne 0x41db83
push str.workgroup
push 0x440eac
call fcn.00409330
add esp, 8
push 0x440eac
call fcn.00409210
add esp, 4
mov byte [0x440fac], al
cmp dword [ebp - 0x2438], 0
jne 0x41dbd1
mov ecx, dword [ebp - 4]
add ecx, 0x10c
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x41dbd1
mov edx, dword [ebp - 8]
add edx, 4
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x2450], eax
mov eax, dword [ebp - 0x2450]
push eax
lea ecx, [ebp - 0x2438]
push ecx
call fcn.00419860
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x41db98
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x2454], 0
jmp 0x41dbf6
mov edx, dword [ebp - 0x2454]
add edx, 1
mov dword [ebp - 0x2454], edx
cmp dword [ebp - 0x2454], 0x10
jge 0x41dc78
mov eax, dword [ebp - 0x2454]
cmp dword [ebp + eax*4 - 0x2438], 0
je 0x41dc78
movzx ecx, byte [0x43f063]
test ecx, ecx
je 0x41dc58
mov edx, dword [ebp - 0x2454]
mov eax, dword [ebp + edx*4 - 0x2438]
push eax
push 0x441474
call fcn.00419800
add esp, 8
test eax, eax
je 0x41dc3b
jmp 0x41dbe7
mov ecx, dword [ebp - 0x2454]
mov edx, dword [ebp + ecx*4 - 0x2438]
push edx
push 0x441434
call fcn.00419860
add esp, 8
jmp 0x41dc73
mov eax, dword [ebp - 0x2454]
mov ecx, dword [ebp + eax*4 - 0x2438]
push ecx
push 0x441434
call fcn.00419860
add esp, 8
jmp 0x41dbe7
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00406dc0
mov esp, ebp
pop ebp
ret