Function at 0x40a390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ec
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x7fe
xor edi, edi
lea ecx, [ebp - 0x8d6]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x8e8], esi
mov word [ebp - 0x8d8], ax
call fcn.00422210
add esp, 0xc
push esi
push edi
push 0x42fc18
push str.IPRangeList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
xor eax, eax
xor edx, edx
mov dword [ebp - 0x8e4], esi
mov word [ebp - 0x54], dx
mov dword [ebp - 0x52], eax
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
mov dword [ebp - 0x46], eax
mov dword [ebp - 0x42], eax
mov dword [ebp - 0x3e], eax
mov dword [ebp - 0x3a], eax
mov word [ebp - 0x36], ax
mov word [ebp - 0x34], ax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
cmp esi, 1
jge 0x40a43c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
push 0x6000
push edi
push 0xb43da0
call fcn.00422210
add esp, 0xc
mov dword [0xb43da0], esi
xor eax, eax
jmp 0x40a460
movzx ecx, word [eax + 0x4301b4]
mov word [eax + 0xb43da4], cx
add eax, 2
cmp cx, di
jne 0x40a460
xor eax, eax
jmp 0x40a480
movzx ecx, word [eax + 0x4301b4]
mov word [eax + 0xb43dc8], cx
add eax, 2
cmp cx, di
jne 0x40a480
mov dword [0xb43df0], edi
mov dword [0xb43df4], edi
mov dword [0xb43df8], edi
mov dword [0xb43dfc], edi
mov dword [ebp - 0x8e0], 1
cmp esi, 1
jl 0x40a83e
mov ebx, 0xb43e04
mov eax, 4
lea ecx, [ebp - 0xd8]
sub ebx, 0x4301b4
sub eax, ecx
mov esi, 0xb43e50
mov dword [ebp - 0x8dc], 0xb43e58
mov dword [ebp - 0x8ec], eax
mov edi, edi
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x20
lea edi, [ebp - 0xd8]
rep stosd dword es:[edi], eax
xor eax, eax
movzx ecx, ax
mov eax, ecx
shl ecx, 0x10
or eax, ecx
push 0xa
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x8e0]
push edx
push eax
mov dword [esi - 0x50], eax
call fcn.0041aee5
mov eax, dword [ebp - 0x8e8]
add esp, 0xc
push eax
push 0x40
lea ecx, [ebp - 0xd8]
push ecx
push 0x4301b4
lea edx, [ebp - 0x14]
push edx
push str.IPRangeList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xd8]
push 0x26
push eax
call fcn.0041acc1
add esp, 8
test eax, eax
je 0x40a5b5
lea ecx, [ebp - 0xd8]
push 0x26
push ecx
call fcn.0041acc1
add eax, 2
lea edx, [ebp - 0x34]
add esp, 8
sub edx, eax
jmp 0x40a590
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40a590
lea edx, [ebp - 0xd8]
push 0x26
push edx
call fcn.0041acc1
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x34]
push edx
call fcn.0041c6a1
mov ecx, dword [ebp - 0x8dc]
add esp, 4
mov dword [ecx], eax
lea eax, [ebp - 0xd8]
push 0x26
push eax
mov dword [ecx + 4], edx
call fcn.0041acc1
add esp, 8
test eax, eax
je 0x40a625
lea ecx, [ebp - 0xd8]
push 0x26
push ecx
call fcn.0041acc1
add eax, 2
lea edx, [ebp - 0x54]
add esp, 8
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x40a600
lea edx, [ebp - 0xd8]
push 0x26
push edx
call fcn.0041acc1
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x54]
push edx
call fcn.0041c6a1
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0xd8]
push 0x26
push eax
mov dword [esi + 4], edx
call fcn.0041acc1
add esp, 8
test eax, eax
je 0x40a689
lea ecx, [ebp - 0xd8]
push 0x26
push ecx
call fcn.0041acc1
add eax, 2
mov edx, esi
add esp, 8
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx - 0x28], cx
add eax, 2
test cx, cx
jne 0x40a663
lea eax, [ebp - 0xd8]
push 0x26
push eax
call fcn.0041acc1
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0xd8]
push 0x26
push edx
call fcn.0041acc1
add esp, 8
test eax, eax
jne 0x40a6c3
mov ecx, dword [ebp - 0x8ec]
lea eax, [ebp - 0xd8]
lea edx, [esi + ecx - 0x50]
mov edi, edi
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x40a6b0
xor edi, edi
jmp 0x40a704
mov eax, dword [ebp - 0x8dc]
xor edi, edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov eax, 0x4301b4
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + ebx + 0x24], cx
add eax, 2
cmp cx, di
jne 0x40a6e0
mov eax, 0x4301b4
movzx ecx, word [eax]
mov word [eax + ebx], cx
add eax, 2
cmp cx, di
jne 0x40a6f5
lea ecx, [esi - 0x4c]
call fcn.00401100
test al, al
je 0x40a71c
lea ecx, [esi - 0x28]
call fcn.00401100
test al, al
jne 0x40a755
mov eax, dword [ebp - 0x8dc]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov eax, 0x4301b4
movzx ecx, word [eax]
mov word [eax + ebx + 0x24], cx
add eax, 2
cmp cx, di
jne 0x40a731
mov eax, 0x4301b4
movzx ecx, word [eax]
mov word [eax + ebx], cx
add eax, 2
cmp cx, di
jne 0x40a746
lea ecx, [esi - 0x4c]
call fcn.00401210
cmp eax, dword [esi]
jne 0x40a77d
cmp edx, dword [esi + 4]
jne 0x40a77d
lea ecx, [esi - 0x28]
call fcn.00401210
mov ecx, dword [ebp - 0x8dc]
cmp eax, dword [ecx]
jne 0x40a77d
cmp edx, dword [ecx + 4]
je 0x40a7bf
mov eax, dword [ebp - 0x8dc]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov eax, 0x4301b4
movzx ecx, word [eax]
mov word [eax + ebx + 0x24], cx
add eax, 2
cmp cx, di
jne 0x40a792
mov eax, 0x4301b4
jmp 0x40a7b0
movzx ecx, word [eax]
mov word [eax + ebx], cx
add eax, 2
cmp cx, di
jne 0x40a7b0
cmp dword [0xb57ce0], edi
je 0x40a818
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x200
lea edi, [ebp - 0x8d8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [esi - 0x28]
push edx
lea eax, [esi - 0x4c]
push eax
mov eax, dword [esi - 0x50]
push eax
lea ecx, [ebp - 0x8d8]
push str._Debug__GetPcList___u____s___s____s___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x8d8]
add esp, 0x1c
push edx
call fcn.00403790
add esp, 4
mov eax, dword [ebp - 0x8e0]
add dword [ebp - 0x8dc], 0x60
inc eax
add esi, 0x60
add ebx, 0x60
mov dword [ebp - 0x8e0], eax
cmp eax, dword [ebp - 0x8e4]
jle 0x40a4f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041a70e
mov esp, ebp
pop ebp
ret