Function at 0x41ff90
Capabilities:
Get networking parameters

Disassembly:
sub esp, 0x104
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x248
push 0x40
mov dword [esp + 0x14], 0
call edi
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x248
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
jne 0x41ffdc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0xc]
push ecx
push 0x40
call edi
mov esi, eax
lea edx, [esp + 0xc]
push edx
push esi
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
jne 0x42000b
add esi, 0x10c
test esi, esi
je 0x42000b
lea eax, [esi + 4]
push eax
call fcn.0041fdc0
add esp, 4
test al, al
jne 0x420071
mov esi, dword [esi]
test esi, esi
jne 0x41fff5
mov ebp, dword [esp + 0x114]
mov eax, dword [0x444020]
mov ecx, 0x445264
test ecx, ecx
mov dword [ebp], eax
je 0x42021a
mov edx, ecx
shr edx, 0x10
jne 0x4201de
xor edi, edi
mov eax, ecx
lea ecx, [esp + 0x10]
mov di, ax
push 0x100
push ecx
push edi
call fcn.004057e0
mov edx, 0x100
sub edx, eax
cmp edx, 2
jle 0x42018e
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.004052a0
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x104
ret
mov ecx, dword [0x444020]
push ebx
mov ebx, dword [esp + 0x118]
add esi, 4
test esi, esi
mov dword [ebx], ecx
je 0x420181
mov edx, esi
shr edx, 0x10
jne 0x420137
mov eax, dword [0x445260]
and esi, 0xffff
lea ecx, [esp + 0x14]
mov edi, esi
mov eax, dword [eax + 8]
push 0x100
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x4200c1
mov byte [esp + 0x14], al
mov edx, 0x100
sub edx, eax
cmp edx, 2
jle 0x4200e6
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.004052a0
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x104
ret
push 0x1ff
mov ecx, ebx
mov esi, 0x200
call fcn.00405570
test eax, eax
je 0x420121
push esi
push eax
push edi
call fcn.004057e0
mov ecx, esi
sub ecx, eax
cmp ecx, 2
jg 0x420121
add esi, 0x100
mov ecx, ebx
lea edx, [esi - 1]
push edx
call fcn.00405570
test eax, eax
jne 0x4200fb
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00405620
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x104
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x420181
lea eax, [ebp + 0xd]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x420181
mov dword [eax], 1
lea ecx, [ebp + 1]
mov byte [eax + ebp + 0xc], 0
lea edi, [eax + 0xc]
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
cmp ecx, ebp
mov dword [ebx], edi
jb 0x420181
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x104
ret
push 0x1ff
mov ecx, ebp
mov esi, 0x200
call fcn.00405570
test eax, eax
je 0x4201c9
push esi
push eax
push edi
call fcn.004057e0
mov ecx, esi
sub ecx, eax
cmp ecx, 2
jg 0x4201c9
add esi, 0x100
mov ecx, ebp
lea edx, [esi - 1]
push edx
call fcn.00405570
test eax, eax
jne 0x4201a3
push 0xffffffffffffffff
mov ecx, ebp
call fcn.00405620
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x104
ret
push 0x445264
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x42021a
push esi
mov ecx, ebp
call fcn.00405710
test eax, eax
je 0x42021a
lea eax, [esi + 1]
cmp eax, esi
jb 0x42021a
mov edi, dword [ebp]
mov ecx, esi
mov edx, ecx
mov esi, 0x445264
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x104
ret