Function at 0x1005a210
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069636
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x10086ba0]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x100a5346]
test eax, eax
jne 0x1005a250
mov eax, 1
jmp 0x1005a7c1
lea ecx, [ebp - 0x20]
call fcn.10001af0
mov dword [ebp - 4], 0
movzx ecx, byte [0x1008af93]
test ecx, ecx
je 0x1005a275
push str.__ReleaseIpAddr_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x108
call fcn.100165a5
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
call fcn.10001af0
mov byte [ebp - 4], 1
call fcn.10047300
movzx edx, al
test edx, edx
je 0x1005a314
push 0x1008b1e8
lea ecx, [ebp - 0x1c]
call fcn.100017b0
push 4
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10003550
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x248]
push edx
lea ecx, [ebp - 0x1c]
call fcn.10002750
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.10001850
mov eax, dword [ebp - 0x1c]
push eax
push 0x10076320
lea ecx, [ebp - 0x20]
push ecx
call fcn.100025d0
add esp, 0xc
jmp 0x1005a337
call fcn.10064fb0
push eax
lea ecx, [ebp - 0x1c]
call fcn.100017b0
mov edx, dword [ebp - 0x1c]
push edx
push 0x10076338
lea eax, [ebp - 0x20]
push eax
call fcn.100025d0
add esp, 0xc
movzx ecx, byte [0x1008af93]
test ecx, ecx
je 0x1005a351
lea ecx, [ebp - 0x20]
call fcn.10001ae0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx edx, byte [0x100a5346]
test edx, edx
je 0x1005a3d7
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.IPHLPAPI.DLL_GetInterfaceInfo
cmp eax, 0x7a
jne 0x1005a37f
mov edx, dword [ebp - 0x18]
push edx
call fcn.100165a5
add esp, 4
mov dword [ebp - 0x10], eax
jmp 0x1005a3d7
movzx eax, byte [0x1008af93]
test eax, eax
je 0x1005a3d7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
push str.Adapter_Index:__ld_n
lea eax, [ebp - 0x20]
push eax
call fcn.100025d0
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.10001ae0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
push 0x10076360
lea eax, [ebp - 0x20]
push eax
call fcn.100025d0
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.10001ae0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx ecx, byte [0x100a5346]
test ecx, ecx
jne 0x1005a412
mov dword [ebp - 0x238], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10001850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10001850
mov eax, dword [ebp - 0x238]
jmp 0x1005a7c1
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.IPHLPAPI.DLL_GetInterfaceInfo
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1005a496
movzx ecx, byte [0x1008af93]
test ecx, ecx
je 0x1005a494
mov edx, dword [ebp - 0x10]
add edx, 8
push edx
push 0x10076374
call fcn.1001513b
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
push str._tAdapter_Index:__ld_n
call fcn.1001513b
add esp, 8
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
push 0x100763a0
call fcn.1001513b
add esp, 8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
push str.Num_Adapters:__ld_n
lea eax, [ebp - 0x20]
push eax
call fcn.100025d0
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.10001ae0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1005a4f6
movzx ecx, byte [0x1008af93]
test ecx, ecx
je 0x1005a4ac
push str.GetInterfaceInfo_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x100763e4
call fcn.1001513b
add esp, 4
push 0
push 0
lea edx, [ebp - 0x24]
push edx
push 0x400
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x1005a4ec
mov ecx, dword [ebp - 0x24]
push ecx
push 0x10076400
call fcn.1001513b
add esp, 8
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x28], 0
jmp 0x1005a508
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
cmp edx, dword [ecx]
jge 0x1005a780
push 0x200
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.100139b0
add esp, 0xc
movzx ecx, byte [0x1008af93]
test ecx, ecx
je 0x1005a59e
call fcn.10047390
movzx edx, al
test edx, edx
je 0x1005a56b
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x104
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 8]
push edx
push 0x1007640c
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x1005a591
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 8]
push eax
push 0x10076420
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x20]
call fcn.100017b0
push 0
lea ecx, [ebp - 0x1c]
call fcn.10001ae0
push eax
lea ecx, [ebp - 0x20]
call fcn.10001c30
test eax, eax
jle 0x1005a77b
push 0x200
push 0
lea ecx, [ebp - 0x22c]
push ecx
call fcn.100139b0
add esp, 0xc
call fcn.10047390
movzx edx, al
test edx, edx
je 0x1005a612
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x104
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 8]
push edx
push 0x10076434
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x1005a638
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 8]
push eax
push 0x10076438
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x230]
call fcn.100017d0
mov byte [ebp - 4], 3
movzx eax, byte [0x1008af93]
test eax, eax
je 0x1005a66b
lea ecx, [ebp - 0x230]
call fcn.10001ae0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx ecx, byte [0x100a5346]
test ecx, ecx
jne 0x1005a6b5
mov dword [ebp - 0x23c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.10001850
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10001850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10001850
mov eax, dword [ebp - 0x23c]
jmp 0x1005a7c1
call sym.RtlLib.dll_RT_IsUnplug
movzx edx, al
test edx, edx
jne 0x1005a76c
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x104
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 4]
push edx
call sub.IPHLPAPI.DLL_IpReleaseAddress
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1005a729
movzx eax, byte [0x1008af93]
test eax, eax
je 0x1005a727
push str.IP_release_succeeded._n
call fcn.1001513b
add esp, 4
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push str.IpReleaseAddress__d_:__s_succeeded._n
lea eax, [ebp - 0x20]
push eax
call fcn.100025d0
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.10001ae0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1005a76c
movzx ecx, byte [0x1008af93]
test ecx, ecx
je 0x1005a76c
push str.IP_release_failed._n
call fcn.1001513b
add esp, 4
mov edx, dword [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x28]
push eax
push str.IpReleaseAddress__d_:__s_failed._n
lea ecx, [ebp - 0x20]
push ecx
call fcn.100025d0
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.10001ae0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.10001850
jmp 0x1005a4ff
movzx edx, byte [0x1008af93]
test edx, edx
je 0x1005a796
push str.__ReleaseIpAddr._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x240], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10001850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10001850
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.1001362b
mov esp, ebp
pop ebp
ret