Function at 0x404e10
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x4c88a0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x500770]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
sub eax, 0x10
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00406ea0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 4], esi
call dword [0x501c04]
mov dword [ebp - 0x20], eax
call fcn.00491248
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x404e8b
push 0x80004005
call fcn.00401ee0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
xor edi, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jmp 0x404ead
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
xor esi, esi
push edi
lea ecx, [ebp - 0x10]
push str.DnsName_.2d
push ecx
call fcn.00406c50
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push edx
push 0x208
lea eax, [ebp]
push eax
push 0x4d97fc
push ecx
push str.NSLOOKUP
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x4d97fc
lea eax, [ebp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404f0e
cmp dx, si
je 0x404f0a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404f0e
add eax, 4
add ecx, 4
cmp dx, si
jne 0x404ee8
xor eax, eax
jmp 0x404f13
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x404f93
mov edi, 7
lea eax, [ebp]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x38], si
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x404f30
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp]
push edx
lea esi, [ebp - 0x3c]
call fcn.00406b80
add ebx, 0x70
mov eax, esi
mov byte [ebp - 4], 3
call fcn.00405320
mov byte [ebp - 4], 1
cmp dword [ebp - 0x24], 8
jb 0x404f70
mov eax, dword [ebp - 0x38]
push eax
call fcn.00488fd0
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], eax
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x64
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], eax
jl 0x404ea5
jmp 0x405062
cmp edi, esi
jne 0x405062
cmp dword [ebx + 0x44], 0x10
jb 0x404fa6
mov edi, dword [ebx + 0x30]
jmp 0x404fa9
lea edi, [ebx + 0x30]
cmp edi, esi
jne 0x404fb1
xor ecx, ecx
jmp 0x404ffe
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
add ebx, 1
cmp ebx, 0x3fffffff
jle 0x404fc9
xor eax, eax
jmp 0x404ff9
lea eax, [ebx + ebx]
call fcn.004aedf0
mov esi, esp
test esi, esi
je 0x404ff5
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push ecx
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x404ff7
xor eax, eax
xor esi, esi
mov ebx, dword [ebp - 0x1c]
mov ecx, eax
lea edx, [ebp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, si
jne 0x405001
lea eax, [ebp]
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], esi
mov word [ebp - 0x54], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405026
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp]
push edx
lea esi, [ebp - 0x58]
call fcn.00406b80
add ebx, 0x70
mov eax, esi
mov byte [ebp - 4], 2
call fcn.00405320
cmp dword [ebp - 0x40], 8
jb 0x405062
mov eax, dword [ebp - 0x54]
push eax
call fcn.00488fd0
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004a74b2
add ebp, 0x20c
mov esp, ebp
pop ebp
ret