Function at 0x1000af90
Capabilities:
Access peb ldr_data
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1002cb0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
mov eax, dword [0x1003a1d0]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 0xc]
push esi
mov dword [esp + 0x2a0], eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
push ecx
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x2ac], edi
call fcn.10009e80
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], edi
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
xor edx, edx
xor eax, eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x70], eax
push 0x200
lea ecx, [esp + 0xa0]
mov dword [esp + 0x68], edx
mov dword [esp + 0x78], eax
push ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x80], eax
push edi
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x9c]
push 0x5c
push edx
call fcn.10020b50
mov ecx, dword [str.DnsSessionConfig.ini]
add eax, 1
mov dword [eax], ecx
mov edx, dword [0x1002ed04]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [eax + 4], edx
mov ecx, dword [0x1002ed08]
mov dword [eax + 8], ecx
mov edx, dword [0x1002ed0c]
mov dword [eax + 0xc], edx
mov ecx, dword [0x1002ed10]
mov dword [eax + 0x10], ecx
mov dl, byte [0x1002ed14]
add esp, 8
mov byte [eax + 0x14], dl
lea eax, [esp + 0x9c]
push eax
push edi
push str.Count
push str.Server
call ebp
cmp eax, edi
mov dword [esp + 0x28], eax
jne 0x1000b0a9
mov dword [ebx + 0x24], edi
jmp 0x1000b334
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x1000b334
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x64]
push str.Name_d
push edx
call fcn.10020aeb
add esp, 0xc
lea eax, [esp + 0x9c]
push eax
push 0x10
lea ecx, [esp + 0x78]
push ecx
push 0x1002ece5
lea edx, [esp + 0x70]
push edx
push str.Server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x70]
mov esi, 0x1002ece5
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1000b31b
lea ecx, [esp + 0x9c]
push ecx
xor edi, edi
push edi
push str.Count
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x70], al
call ebp
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x1000b31b
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
lea eax, [esp + 0x9c]
push eax
push edi
push str.Type
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x2b8], 1
call ebp
cmp eax, edi
mov dword [esp + 0x30], eax
jne 0x1000b16d
mov byte [esp + 0x2a8], 0
jmp 0x1000b30f
xor esi, esi
cmp dword [esp + 0x10], edi
jle 0x1000b25a
lea esp, [esp]
lea ecx, [esp + 0x80]
call fcn.100101a0
push esi
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x68]
push str._s_d
push eax
call fcn.10020aeb
add esp, 0x10
lea ecx, [esp + 0x9c]
push ecx
push edi
push 0x1002ecd4
lea edx, [esp + 0x6c]
push edx
call ebp
mov byte [esp + 0x89], al
lea eax, [esp + 0x9c]
push eax
push 0x10
lea ecx, [esp + 0x92]
push ecx
push 0x1002ece5
push 0x1002ecd0
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x9c]
push eax
push edi
push str.Port
lea ecx, [esp + 0x6c]
push ecx
call ebp
lea edx, [esp + 0x9c]
push edx
push edi
mov word [esp + 0xa2], ax
push 0x1002ecc4
lea eax, [esp + 0x6c]
push eax
mov word [esp + 0x90], 0x31
call ebp
cmp word [esp + 0x9a], di
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 1
je 0x1000b24d
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100099e0
add esi, 1
cmp esi, dword [esp + 0x10]
jl 0x1000b180
sub esp, 0x10
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.100088f0
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.1000af20
add esp, 0x18
mov dx, word [eax]
add eax, 4
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x2ac], 2
mov word [esp + 0x3c], dx
call fcn.100088f0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
mov byte [esp + 0x2b0], 3
call fcn.1000a700
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x1000b2c6
push eax
call fcn.10020755
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
je 0x1000b2e3
push eax
call fcn.10020755
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [ebx + 0x24], 1
mov byte [esp + 0x2a8], 0
je 0x1000b30f
push eax
call fcn.10020755
add esp, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
jl 0x1000b0b5
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x29c]
call fcn.1001fde5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x29c
ret