Function at 0x404a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ac
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x3a8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 0x7f
lea ecx, [esp + 0x235]
push esi
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x23c], 0
call fcn.00418570
push 0xfa
lea edx, [esp + 0x2c0]
push esi
push edx
call fcn.00418570
add esp, 0x18
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2b4]
push ecx
call sub.MPRAPI.dll_MprConfigServerConnect
lea edx, [esp + 0xc]
push edx
push esi
call sub.IPHLPAPI.DLL_GetInterfaceInfo
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.004191de
mov ebx, eax
add esp, 4
lea eax, [esp + 0xc]
push eax
push ebx
mov dword [esp + 0x1c], ebx
call sub.IPHLPAPI.DLL_GetInterfaceInfo
test eax, eax
jne 0x404d1b
cmp dword [ebx], esi
mov dword [esp + 0x18], esi
jle 0x404d1b
lea eax, [ebx + 4]
mov dword [esp + 0x1c], eax
mov ecx, 0x41
mov esi, eax
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
cmp dword [esp + 0x28], ecx
jne 0x404cfd
push 0xfa
mov esi, eax
lea edx, [esp + 0x2b4]
push edx
mov ecx, 0x41
lea edi, [esp + 0x30]
lea eax, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call sub.MPRAPI.dll_MprConfigGetFriendlyName
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x2c4]
push edx
push 0
push 0
call esi
push 0
push 0
push eax
lea eax, [esp + 0x23c]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x2c4]
push ecx
push 0
push 0
call esi
lea edx, [esp + 0x230]
push edx
lea eax, [esp + 0x134]
push str.Link
push eax
call fcn.0041861e
lea eax, [esp + 0x13c]
add esp, 0xc
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404b70
sub eax, ecx
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x13c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call sub.IPHLPAPI.DLL_GetPerAdapterInfo
mov eax, dword [esp + 0xc]
inc eax
push eax
mov dword [esp + 0x10], eax
call fcn.004191de
mov ecx, dword [esp + 0x2c]
add esp, 4
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push ebx
push ecx
call sub.IPHLPAPI.DLL_GetPerAdapterInfo
test eax, eax
jne 0x404cf9
lea esi, [ebx + 0xc]
test esi, esi
je 0x404cf0
lea edx, [esi + 4]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404be4
sub eax, edi
lea eax, [esp + 0x130]
jne 0x404c2f
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404bf7
mov edx, dword [0x4266b0]
mov ecx, dword [0x4266b4]
mov dword [eax], edx
mov edx, dword [0x4266b8]
mov dword [eax + 4], ecx
mov cx, word [0x4266bc]
mov dword [eax + 8], edx
mov dl, byte [0x4266be]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
jmp 0x404c3e
push edx
push 0x4266a4
push eax
call fcn.0041861e
add esp, 0xc
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c48
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
sub eax, edx
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x13c]
push edx
push eax
call edi
mov eax, dword [esi]
test eax, eax
jne 0x404cad
lea eax, [esp + 0x130]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404c80
mov ecx, dword [str.DNS2]
mov edx, dword [0x426698]
mov dword [eax], ecx
mov ecx, dword [0x42669c]
mov dword [eax + 4], edx
mov edx, dword [0x4266a0]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x404cc6
add eax, 4
push eax
lea eax, [esp + 0x134]
push 0x426688
push eax
call fcn.0041861e
add esp, 0xc
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404cd0
push 0
sub eax, edx
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x13c]
push edx
push eax
call edi
push ebx
call fcn.00419101
add esp, 4
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ecx
add eax, 0x104
cmp ecx, dword [ebx]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jl 0x404ac4
push ebx
call fcn.00419101
mov ecx, dword [esp + 0x3b8]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041869b
mov esp, ebp
pop ebp
ret