Function at 0x10078090
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c2bfe
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.1008bb10
mov eax, dword [0x1010b070]
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.10074600
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 0x100782ee
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0x1034]
cmp ecx, 0x10
jae 0x10078182
mov eax, dword [ebp - 0x1038]
add eax, 1
je 0x10078194
push eax
lea eax, [ebp - 0x1048]
push eax
push edi
call fcn.1008c960
mov ecx, dword [ebp - 0x1034]
add esp, 0xc
jmp 0x10078194
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 0x1007821b
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x1060]
cmp eax, 0x1000
jb 0x10078206
test cl, 0x1f
je 0x100781e2
call fcn.100906d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100781ee
call fcn.100906d1
sub ecx, eax
cmp ecx, 4
jae 0x100781fa
call fcn.100906d1
cmp ecx, 0x23
jbe 0x10078204
call fcn.100906d1
mov ecx, eax
push ecx
call fcn.1008a772
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 0x10078280
mov ecx, dword [ebp - 0x1048]
inc eax
cmp eax, 0x1000
jb 0x10078277
test dl, 0x1f
je 0x10078253
call fcn.100906d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1007825f
call fcn.100906d1
sub ecx, eax
cmp ecx, 4
jae 0x1007826b
call fcn.100906d1
cmp ecx, 0x23
jbe 0x10078275
call fcn.100906d1
mov ecx, eax
push ecx
call fcn.1008a772
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 0x10078592
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x100782e0
test cl, 0x1f
je 0x100782bc
call fcn.100906d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100782c8
call fcn.100906d1
sub ecx, eax
cmp ecx, 4
jae 0x100782d4
call fcn.100906d1
cmp ecx, 0x23
jbe 0x100782de
call fcn.100906d1
mov ecx, eax
push ecx
call fcn.1008a772
add esp, 4
jmp 0x10078592
xor eax, eax
mov dword [ebp - 0x1064], eax
cmp eax, 5
jge 0x100784ec
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.100750a0
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 0x100783ba
push esi
lea eax, [ebp - 0x30]
push str.Adapter_u
push eax
call fcn.100750a0
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 0x100d1e22
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.1008d2f0
add esp, 8
test eax, eax
jne 0x100783e7
inc esi
cmp esi, ebx
jl 0x10078350
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 0x100784ec
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x100782f6
cmp byte [ebp - 0x1030], 0
jne 0x100783f4
xor esi, esi
jmp 0x10078409
lea esi, [ebp - 0x1030]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10078400
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 0x10078475
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 0x10078475
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 0x100784ec
cmp esi, 0xfffffffe
jbe 0x10078484
push str.string_too_long
call fcn.10088e55
cmp edx, esi
jae 0x100785b0
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 0x100784ec
cmp edx, 0x10
lea eax, [ebp - 0x1048]
cmovae eax, ebx
test esi, esi
je 0x100784d6
push esi
lea ecx, [ebp - 0x1030]
push ecx
push eax
call fcn.1008d710
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 0x10078528
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 0x10078560
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 0x10078592
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.1008a777
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x100784a9
cmp edx, 0x10
mov dword [ebp - 0x1038], esi
lea eax, [ebp - 0x1048]
cmovae eax, ebx
mov byte [eax], 0
jmp 0x100784ec