Function at 0x10079460
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c42fe
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.1008cee0
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1064], edi
mov dword [ebp - 0x106c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
lea ecx, [ebp - 0x1060]
mov byte [ebp - 4], 1
call fcn.100759d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1060]
cmp dword [ebp - 0x104c], 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmovae eax, dword [ebp - 0x1060]
push eax
push 0xffffffffffffffff
push str.CreateIndex
push str.ActiveGuid
call ebx
mov ecx, eax
mov dword [ebp - 0x1068], ecx
test ecx, ecx
jns 0x100796be
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0x1034]
cmp ecx, 0x10
jae 0x10079552
mov eax, dword [ebp - 0x1038]
add eax, 1
je 0x10079564
push eax
lea eax, [ebp - 0x1048]
push eax
push edi
call fcn.1008dd30
mov ecx, dword [ebp - 0x1034]
add esp, 0xc
jmp 0x10079564
mov eax, dword [ebp - 0x1048]
mov dword [edi], eax
mov dword [ebp - 0x1048], 0
mov eax, dword [ebp - 0x1038]
xor dl, dl
mov dword [edi + 0x10], eax
mov eax, 0xf
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x104c]
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], dl
cmp ecx, 0x10
jb 0x100795eb
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x1060]
cmp eax, 0x1000
jb 0x100795d6
test cl, 0x1f
je 0x100795b2
call fcn.10091aa1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100795be
call fcn.10091aa1
sub ecx, eax
cmp ecx, 4
jae 0x100795ca
call fcn.10091aa1
cmp ecx, 0x23
jbe 0x100795d4
call fcn.10091aa1
mov ecx, eax
push ecx
call fcn.1008bb42
mov eax, dword [ebp - 0x1034]
add esp, 4
mov dl, byte [ebp - 0x1048]
mov dword [ebp - 0x104c], 0xf
mov dword [ebp - 0x1050], 0
mov byte [ebp - 0x1060], 0
cmp eax, 0x10
jb 0x10079650
mov ecx, dword [ebp - 0x1048]
inc eax
cmp eax, 0x1000
jb 0x10079647
test dl, 0x1f
je 0x10079623
call fcn.10091aa1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1007962f
call fcn.10091aa1
sub ecx, eax
cmp ecx, 4
jae 0x1007963b
call fcn.10091aa1
cmp ecx, 0x23
jbe 0x10079645
call fcn.10091aa1
mov ecx, eax
push ecx
call fcn.1008bb42
add esp, 4
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
cmp eax, 0x10
jb 0x10079962
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x100796b0
test cl, 0x1f
je 0x1007968c
call fcn.10091aa1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10079698
call fcn.10091aa1
sub ecx, eax
cmp ecx, 4
jae 0x100796a4
call fcn.10091aa1
cmp ecx, 0x23
jbe 0x100796ae
call fcn.10091aa1
mov ecx, eax
push ecx
call fcn.1008bb42
add esp, 4
jmp 0x10079962
xor eax, eax
mov dword [ebp - 0x1064], eax
cmp eax, 5
jge 0x100798bc
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
sub ecx, eax
lea eax, [ebp - 0x20]
push ecx
push str.Build_d
push eax
call fcn.10076470
add esp, 0xc
lea eax, [ebp - 0x1060]
cmp dword [ebp - 0x104c], 0x10
cmovae eax, dword [ebp - 0x1060]
push eax
push 0
push str.AdapterCount
lea eax, [ebp - 0x20]
push eax
call ebx
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x1007978a
push esi
lea eax, [ebp - 0x30]
push str.Adapter_u
push eax
call fcn.10076470
add esp, 0xc
lea eax, [ebp - 0x1060]
cmp dword [ebp - 0x104c], 0x10
cmovae eax, dword [ebp - 0x1060]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
push 0x100d3e22
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1030]
push eax
call fcn.1008e6c0
add esp, 8
test eax, eax
jne 0x100797b7
inc esi
cmp esi, ebx
jl 0x10079720
mov ecx, dword [ebp - 0x1068]
mov eax, dword [ebp - 0x1064]
dec ecx
inc eax
mov dword [ebp - 0x1068], ecx
mov dword [ebp - 0x1064], eax
test ecx, ecx
js 0x100798bc
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x100796c6
cmp byte [ebp - 0x1030], 0
jne 0x100797c4
xor esi, esi
jmp 0x100797d9
lea esi, [ebp - 0x1030]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100797d0
sub esi, ecx
mov edx, dword [ebp - 0x1034]
lea eax, [ebp - 0x1048]
mov ebx, dword [ebp - 0x1048]
lea ecx, [ebp - 0x1030]
cmp edx, 0x10
cmovae eax, ebx
cmp ecx, eax
mov ecx, dword [ebp - 0x1038]
jb 0x10079845
cmp edx, 0x10
lea eax, [ebp - 0x1048]
lea edx, [ebp - 0x1030]
cmovae eax, ebx
add eax, ecx
cmp eax, edx
mov edx, dword [ebp - 0x1034]
jbe 0x10079845
cmp edx, 0x10
lea ecx, [ebp - 0x1048]
push esi
cmovae ecx, ebx
lea eax, [ebp - 0x1030]
sub eax, ecx
push eax
lea eax, [ebp - 0x1048]
push eax
mov ecx, eax
call fcn.100058d2
jmp 0x100798bc
cmp esi, 0xfffffffe
jbe 0x10079854
push str.string_too_long
call fcn.1008a225
cmp edx, esi
jae 0x10079980
push ecx
push esi
lea ecx, [ebp - 0x1048]
call fcn.10005cba
mov edx, dword [ebp - 0x1034]
mov ebx, dword [ebp - 0x1048]
test esi, esi
je 0x100798bc
cmp edx, 0x10
lea eax, [ebp - 0x1048]
cmovae eax, ebx
test esi, esi
je 0x100798a6
push esi
lea ecx, [ebp - 0x1030]
push ecx
push eax
call fcn.1008eae0
mov edx, dword [ebp - 0x1034]
add esp, 0xc
mov ebx, dword [ebp - 0x1048]
cmp edx, 0x10
mov dword [ebp - 0x1038], esi
lea eax, [ebp - 0x1048]
cmovae eax, ebx
mov byte [eax + esi], 0
lea eax, [ebp - 0x1048]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov ecx, edi
push eax
mov byte [edi], 0
call fcn.10007941
mov eax, dword [ebp - 0x104c]
cmp eax, 0x10
jb 0x100798f8
push 1
inc eax
push eax
push dword [ebp - 0x1060]
call fcn.10001f08
add esp, 0xc
mov eax, dword [ebp - 0x1034]
mov byte [ebp - 0x1060], 0
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 0xf
cmp eax, 0x10
jb 0x10079930
push 1
inc eax
push eax
push dword [ebp - 0x1048]
call fcn.10001f08
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 0x1048], 0
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0xf
cmp eax, 0x10
jb 0x10079962
push 1
inc eax
push eax
push dword [ebp + 8]
call fcn.10001f08
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x10079879
cmp edx, 0x10
mov dword [ebp - 0x1038], esi
lea eax, [ebp - 0x1048]
cmovae eax, ebx
mov byte [eax], 0
jmp 0x100798bc