Function at 0x408810
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov eax, dword [0x44bf54]
sub esp, 0x13c
cmp eax, 2
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x408854
mov al, byte [0x44bf4c]
pop edi
mov byte [ebp + 0x3fab0], al
mov cl, byte [0x44bf4d]
mov byte [ebp + 0x3fab1], cl
mov dl, byte [0x44bf4e]
mov byte [ebp + 0x3fab2], dl
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret
mov al, byte [0x44be70]
mov ecx, 0x45
mov byte [esp + 0x34], al
xor eax, eax
lea edi, [esp + 0x35]
lea ebx, [ebp + 0x43a3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.config.ini
cmp byte [ecx + ebp + 0x43a3b], 0x5c
je 0x4088c6
mov edi, 0x446248
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x34]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x2c]
push 0xa
push ecx
push str.0.0.0
push str.Version
push str.LOGIN
call esi
lea edx, [esp + 0x28]
push 0x4461d8
push edx
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x40892a
mov byte [esp + 0x14], al
jmp 0x408937
push eax
call fcn.0041a9ed
add esp, 4
mov byte [esp + 0x14], al
push 0x4461d8
push 0
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x408950
mov byte [esp + 0x10], al
jmp 0x40895d
push eax
call fcn.0041a9ed
add esp, 4
mov byte [esp + 0x10], al
push 0x4461d8
push 0
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x408976
mov byte [esp + 0x18], al
jmp 0x408983
push eax
call fcn.0041a9ed
add esp, 4
mov byte [esp + 0x18], al
lea eax, [esp + 0x34]
lea ecx, [esp + 0x28]
push eax
push 0xa
push ecx
push str.0.0.0
push str.TestVersion
push str.LOGIN
call esi
lea edx, [esp + 0x28]
push 0x4461d8
push edx
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x4089bc
mov byte [esp + 0x1c], al
jmp 0x4089c9
push eax
call fcn.0041a9ed
add esp, 4
mov byte [esp + 0x1c], al
push 0x4461d8
push 0
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x4089e0
xor bl, bl
jmp 0x4089eb
push eax
call fcn.0041a9ed
add esp, 4
mov bl, al
push 0x4461d8
push 0
mov byte [esp + 0x2c], bl
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x408a06
xor al, al
jmp 0x408a0f
push eax
call fcn.0041a9ed
add esp, 4
mov ecx, dword [0x44bf54]
mov byte [esp + 0x20], al
cmp ecx, 1
jne 0x408ac8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
and ecx, 0xff
and edx, 0xff
mov esi, ecx
shl esi, 0x10
sub esi, ecx
mov ecx, dword [esp + 0x20]
shl edx, 8
add edx, esi
and ecx, 0xff
mov esi, dword [esp + 0x10]
add edx, ecx
mov ecx, dword [esp + 0x14]
and esi, 0xff
and ecx, 0xff
mov edi, ecx
shl edi, 0x10
sub edi, ecx
mov ecx, dword [esp + 0x18]
shl esi, 8
add esi, edi
and ecx, 0xff
add esi, ecx
cmp esi, edx
jle 0x408aa7
mov dl, byte [esp + 0x14]
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x18]
pop edi
mov byte [ebp + 0x3fab0], dl
mov byte [ebp + 0x3fab1], al
mov byte [ebp + 0x3fab2], cl
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret
mov dl, byte [esp + 0x1c]
pop edi
mov byte [ebp + 0x3fab0], dl
mov byte [ebp + 0x3fab1], bl
mov byte [ebp + 0x3fab2], al
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret
mov al, byte [esp + 0x14]
mov cl, byte [esp + 0x10]
mov dl, byte [esp + 0x18]
pop edi
mov byte [ebp + 0x3fab0], al
mov byte [ebp + 0x3fab1], cl
mov byte [ebp + 0x3fab2], dl
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret