Function at 0x402510
Capabilities:
Check if file exists
Create thread
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51d906
push eax
mov dword fs:[0], esp
sub esp, 0x9b0
push ebx
push ebp
push esi
push edi
call fcn.00402b00
test eax, eax
je 0x402970
mov eax, dword [0x56d158]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitDnsCache
push eax
call esi
mov ecx, dword [0x56d158]
mov edi, eax
push str.InitDnsCache2
push ecx
mov dword [esp + 0x1c], edi
call esi
xor ebp, ebp
mov ebx, eax
cmp edi, ebp
mov dword [esp + 0x1c], ebx
jne 0x402577
cmp ebx, ebp
je 0x402963
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3aa]
mov word [esp + 0x3a8], bp
rep stosd dword es:[edi], eax
push str.nc.dat
mov ecx, 0x56d188
stosw word es:[edi], ax
call fcn.0040c160
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push eax
push str._sdata_s
lea edx, [esp + 0x3b4]
push 0x103
push edx
call esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1b6]
mov word [esp + 0x1b4], bp
rep stosd dword es:[edi], eax
add esp, 0x14
mov ecx, 0x56d188
stosw word es:[edi], ax
push str.na.ini
call fcn.0040c160
push eax
push str._sdata_s
lea eax, [esp + 0x1ac]
push 0x103
push eax
call esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
push ecx
push str.NotJoinPrivate
push str.option
call fcn.0040e730
add esp, 0x20
cmp ebx, ebp
je 0x40282f
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x7ba]
mov word [esp + 0x7b8], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x8c]
lea edx, [esp + 0x8c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x90], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40269d
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
lea eax, [esp + 0xa0]
push eax
mov eax, dword [esp + 0x94]
push ecx
push edx
push eax
push str._d._d._d__s
lea ecx, [esp + 0x7cc]
push 0x103
push ecx
call esi
add esp, 0x1c
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5b2]
mov word [esp + 0x5b0], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00451c70
push eax
push str.se__s
lea edx, [esp + 0x5b8]
push 0x103
push edx
call esi
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.0043fdd0
mov eax, dword [0x56d158]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x9cc], ebp
call fcn.00440140
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.00440ff0
mov ebx, eax
mov eax, dword [ebx]
mov byte [esp + 0x9c8], 1
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x10], edx
jg 0x402721
cmp dword [eax - 4], ebp
jge 0x402774
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x40272e
jne 0x4027f4
mov eax, dword [0x5381a0]
mov dword [ebx], eax
mov edi, dword [ebx]
lea ecx, [ebp + ebp + 2]
mov eax, ecx
lea esi, [edx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov eax, dword [0x538120]
cmp edx, eax
je 0x402772
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402772
mov edx, dword [esp + 0x10]
push edx
call fcn.0051d19a
add esp, 4
xor ebp, ebp
mov ebx, dword [ebx]
lea eax, [esp + 0x5b0]
push ebx
lea ecx, [esp + 0x7bc]
push eax
push ecx
call fcn.0049b4c0
mov ebx, dword [esp + 0x24]
xor edx, edx
cmp ebx, ebp
push eax
sete dl
lea eax, [esp + 0x1b0]
push edx
lea ecx, [esp + 0x3bc]
push eax
push ecx
call dword [esp + 0x38]
mov ecx, dword [0x538120]
mov esi, eax
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4027de
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4027de
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0051d19a
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x9c8], 0xffffffff
call fcn.0043feb0
jmp 0x402857
lea ecx, [ebp + ebp + 0xe]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x402826
mov edx, dword [esp + 0x10]
mov dword [eax], 1
mov word [eax + ebp*2 + 0xc], 0
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx], eax
jmp 0x402735
xor ebx, ebx
xor ebp, ebp
jmp 0x402776
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x402875
mov ebx, dword [esp + 0x18]
xor ecx, ecx
cmp ebx, ebp
lea edx, [esp + 0x1a0]
sete cl
push ecx
lea ecx, [esp + 0x3ac]
push edx
push ecx
call eax
mov esi, eax
cmp esi, ebp
je 0x402875
mov edx, dword [0x56d158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x56d158], ebp
xor eax, eax
jmp 0x402970
mov eax, dword [0x5be7ac]
push eax
call fcn.00402030
mov eax, dword [0x5be7ac]
add esp, 4
cmp eax, ebp
jne 0x402963
lea ecx, [esp + 0x1a0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402963
lea edx, [esp + 0x1a0]
mov dword [esp + 0x10], ebp
push edx
push ebp
push str.popup
push str.misc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebp
jbe 0x402963
mov esi, 1
cmp eax, esi
jne 0x4028ff
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebp
push eax
push str.Edu1
push str.BallonTip
call fcn.0040e730
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebp
jne 0x40292d
mov dword [0x56d15c], esi
jmp 0x40293d
cmp eax, 2
jne 0x40292d
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push str.Edu2
push str.BallonTip
call fcn.0040e730
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebp
jne 0x40292d
mov dword [0x56d160], esi
cmp dword [0x56d15c], ebp
jne 0x40293d
cmp dword [0x56d160], ebp
je 0x402963
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push edx
push ebp
push ebp
push 0x4020c0
push ebp
push ebp
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebp
je 0x402963
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x56d158]
xor eax, eax
cmp ecx, ebp
setne al
mov ecx, dword [esp + 0x9c0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9bc
ret