Function at 0x10078820
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c35ae
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.1008c2a0
mov eax, dword [0x1010c070]
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.10074d90
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 0x10078a7e
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0x1034]
cmp ecx, 0x10
jae 0x10078912
mov eax, dword [ebp - 0x1038]
add eax, 1
je 0x10078924
push eax
lea eax, [ebp - 0x1048]
push eax
push edi
call fcn.1008d0f0
mov ecx, dword [ebp - 0x1034]
add esp, 0xc
jmp 0x10078924
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 0x100789ab
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x1060]
cmp eax, 0x1000
jb 0x10078996
test cl, 0x1f
je 0x10078972
call fcn.10090e61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1007897e
call fcn.10090e61
sub ecx, eax
cmp ecx, 4
jae 0x1007898a
call fcn.10090e61
cmp ecx, 0x23
jbe 0x10078994
call fcn.10090e61
mov ecx, eax
push ecx
call fcn.1008aee5
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 0x10078a10
mov ecx, dword [ebp - 0x1048]
inc eax
cmp eax, 0x1000
jb 0x10078a07
test dl, 0x1f
je 0x100789e3
call fcn.10090e61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100789ef
call fcn.10090e61
sub ecx, eax
cmp ecx, 4
jae 0x100789fb
call fcn.10090e61
cmp ecx, 0x23
jbe 0x10078a05
call fcn.10090e61
mov ecx, eax
push ecx
call fcn.1008aee5
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 0x10078d22
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x10078a70
test cl, 0x1f
je 0x10078a4c
call fcn.10090e61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10078a58
call fcn.10090e61
sub ecx, eax
cmp ecx, 4
jae 0x10078a64
call fcn.10090e61
cmp ecx, 0x23
jbe 0x10078a6e
call fcn.10090e61
mov ecx, eax
push ecx
call fcn.1008aee5
add esp, 4
jmp 0x10078d22
xor eax, eax
mov dword [ebp - 0x1064], eax
cmp eax, 5
jge 0x10078c7c
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.10075830
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 0x10078b4a
push esi
lea eax, [ebp - 0x30]
push str.Adapter_u
push eax
call fcn.10075830
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 0x100d2e02
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.1008da80
add esp, 8
test eax, eax
jne 0x10078b77
inc esi
cmp esi, ebx
jl 0x10078ae0
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 0x10078c7c
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x10078a86
cmp byte [ebp - 0x1030], 0
jne 0x10078b84
xor esi, esi
jmp 0x10078b99
lea esi, [ebp - 0x1030]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10078b90
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 0x10078c05
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 0x10078c05
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.100058bd
jmp 0x10078c7c
cmp esi, 0xfffffffe
jbe 0x10078c14
push str.string_too_long
call fcn.100895c8
cmp edx, esi
jae 0x10078d40
push ecx
push esi
lea ecx, [ebp - 0x1048]
call fcn.10005ca5
mov edx, dword [ebp - 0x1034]
mov ebx, dword [ebp - 0x1048]
test esi, esi
je 0x10078c7c
cmp edx, 0x10
lea eax, [ebp - 0x1048]
cmovae eax, ebx
test esi, esi
je 0x10078c66
push esi
lea ecx, [ebp - 0x1030]
push ecx
push eax
call fcn.1008dea0
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.10007921
mov eax, dword [ebp - 0x104c]
cmp eax, 0x10
jb 0x10078cb8
push 1
inc eax
push eax
push dword [ebp - 0x1060]
call fcn.10001ef8
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 0x10078cf0
push 1
inc eax
push eax
push dword [ebp - 0x1048]
call fcn.10001ef8
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 0x10078d22
push 1
inc eax
push eax
push dword [ebp + 8]
call fcn.10001ef8
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.1008aeea
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x10078c39
cmp edx, 0x10
mov dword [ebp - 0x1038], esi
lea eax, [ebp - 0x1048]
cmovae eax, ebx
mov byte [eax], 0
jmp 0x10078c7c