Function at 0x10078310
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c2f9e
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.1008bd90
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.10074880
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 0x1007856e
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0x1034]
cmp ecx, 0x10
jae 0x10078402
mov eax, dword [ebp - 0x1038]
add eax, 1
je 0x10078414
push eax
lea eax, [ebp - 0x1048]
push eax
push edi
call fcn.1008cbe0
mov ecx, dword [ebp - 0x1034]
add esp, 0xc
jmp 0x10078414
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 0x1007849b
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x1060]
cmp eax, 0x1000
jb 0x10078486
test cl, 0x1f
je 0x10078462
call fcn.10090951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1007846e
call fcn.10090951
sub ecx, eax
cmp ecx, 4
jae 0x1007847a
call fcn.10090951
cmp ecx, 0x23
jbe 0x10078484
call fcn.10090951
mov ecx, eax
push ecx
call fcn.1008a9f2
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 0x10078500
mov ecx, dword [ebp - 0x1048]
inc eax
cmp eax, 0x1000
jb 0x100784f7
test dl, 0x1f
je 0x100784d3
call fcn.10090951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100784df
call fcn.10090951
sub ecx, eax
cmp ecx, 4
jae 0x100784eb
call fcn.10090951
cmp ecx, 0x23
jbe 0x100784f5
call fcn.10090951
mov ecx, eax
push ecx
call fcn.1008a9f2
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 0x10078812
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x10078560
test cl, 0x1f
je 0x1007853c
call fcn.10090951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10078548
call fcn.10090951
sub ecx, eax
cmp ecx, 4
jae 0x10078554
call fcn.10090951
cmp ecx, 0x23
jbe 0x1007855e
call fcn.10090951
mov ecx, eax
push ecx
call fcn.1008a9f2
add esp, 4
jmp 0x10078812
xor eax, eax
mov dword [ebp - 0x1064], eax
cmp eax, 5
jge 0x1007876c
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.10075320
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 0x1007863a
push esi
lea eax, [ebp - 0x30]
push str.Adapter_u
push eax
call fcn.10075320
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 0x100d1e02
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.1008d570
add esp, 8
test eax, eax
jne 0x10078667
inc esi
cmp esi, ebx
jl 0x100785d0
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 0x1007876c
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x10078576
cmp byte [ebp - 0x1030], 0
jne 0x10078674
xor esi, esi
jmp 0x10078689
lea esi, [ebp - 0x1030]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10078680
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 0x100786f5
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 0x100786f5
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.1000586c
jmp 0x1007876c
cmp esi, 0xfffffffe
jbe 0x10078704
push str.string_too_long
call fcn.100890d5
cmp edx, esi
jae 0x10078830
push ecx
push esi
lea ecx, [ebp - 0x1048]
call fcn.10005c54
mov edx, dword [ebp - 0x1034]
mov ebx, dword [ebp - 0x1048]
test esi, esi
je 0x1007876c
cmp edx, 0x10
lea eax, [ebp - 0x1048]
cmovae eax, ebx
test esi, esi
je 0x10078756
push esi
lea ecx, [ebp - 0x1030]
push ecx
push eax
call fcn.1008d990
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.100078d1
mov eax, dword [ebp - 0x104c]
cmp eax, 0x10
jb 0x100787a8
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 0x100787e0
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 0x10078812
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.1008a9f7
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x10078729
cmp edx, 0x10
mov dword [ebp - 0x1038], esi
lea eax, [ebp - 0x1048]
cmovae eax, ebx
mov byte [eax], 0
jmp 0x1007876c