Function at 0x4026b0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Print debug messages
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4072a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x44], ebp
mov dword [ebp + 4], ebx
mov eax, dword [esp + 0x15c]
push ebx
mov dword [esp + 0x158], ebx
mov dword [ebp + 0xc], eax
mov dword [ebp], 0x4082ac
call sub.MFC42.DLL_AfxSocketInit
test eax, eax
je 0x402a26
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 1
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x48]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x158], 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.hrcon.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x48]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x104
push 0x104
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x40a458
push 0x40a1c0
push str.server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x40b01c
call sub.MFC42.DLL_CString::operator_1
push 0x40a1a8
lea ecx, [esp + 0x1c]
call fcn.00406c4e
lea edx, [esp + 0x10]
mov byte [esp + 0x154], 3
push edx
push eax
lea eax, [esp + 0x48]
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x4029fe
cmp eax, ebx
je 0x4029fe
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.004040e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], 4
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [eax]
xor edx, edx
mov byte [esp + 0x154], 2
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x18]
cmp esi, ebx
sete dl
mov esi, edx
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
jne 0x4029fe
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x402bd0
mov dword [ebp + 8], ebx
call sub.MFC42.DLL_AfxBeginThread
lea eax, [esp + 0x14]
mov ecx, 0x40b018
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [0x40b02c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ecx
call edi
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
cmp eax, 0xffffffff
je 0x4028af
test al, 0x10
jne 0x40291d
xor eax, eax
xor edx, edx
mov dword [esp + 0x2d], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x31], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x35], eax
push ecx
mov dword [esp + 0x3d], eax
mov ecx, ebp
mov word [esp + 0x41], ax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edx
mov byte [esp + 0x30], bl
mov byte [esp + 0x43], al
call fcn.00405780
test eax, eax
je 0x402912
mov ecx, dword [0x40b02c]
lea eax, [esp + 0x20]
lea edx, [esp + 0x2c]
push eax
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], edx
push ecx
jmp 0x40291a
mov edx, dword [0x40b02c]
push ebx
push edx
push ebx
call esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
push 0x104
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 5
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40296b
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [esp + 0x1c]
mov ecx, 0x40b02c
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4029eb
mov ecx, dword [0x40b02c]
push ecx
call edi
cmp eax, 0xffffffff
je 0x40297d
test al, 0x10
jne 0x4029eb
xor eax, eax
xor edx, edx
mov dword [esp + 0x2d], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x31], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x35], eax
push ecx
mov dword [esp + 0x3d], eax
mov ecx, ebp
mov word [esp + 0x41], ax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edx
mov byte [esp + 0x30], bl
mov byte [esp + 0x43], al
call fcn.00405780
test eax, eax
je 0x4029e0
mov ecx, dword [0x40b02c]
lea eax, [esp + 0x20]
lea edx, [esp + 0x2c]
push eax
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], edx
push ecx
jmp 0x4029e8
mov edx, dword [0x40b02c]
push ebx
push edx
push ebx
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 2
call sub.MFC42.DLL_CString::CString
jmp 0x402a05
mov dword [ebp + 8], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14c]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x148
ret 4