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

Disassembly:
push 0xffffffffffffffff
push 0x458b8c
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x477c1c]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477c1c]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
xor ebx, ebx
mov ebp, ecx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x19c], ebx
push 0x103
lea eax, [esp + 0x91]
push ebx
push eax
mov byte [esp + 0x98], bl
call fcn.00440d10
add esp, 0xc
lea ecx, [esp + 0x8c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x8c]
lea esi, [ebp + 0x9f4]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408166
sub eax, edi
push eax
lea edx, [esp + 0x90]
push edx
mov ecx, esi
call fcn.00404290
push 0x104
lea edi, [ebp + 0xd6c]
push ebx
push edi
call fcn.00440d10
mov eax, dword [esi]
mov edx, dword [eax - 0xc]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
add esp, 0xc
or eax, ecx
jge 0x4081b5
push edx
mov ecx, esi
call fcn.00402e50
mov esi, dword [esi]
mov ecx, edi
lea esp, [esp]
mov al, byte [esi]
mov byte [ecx], al
inc esi
inc ecx
cmp al, bl
jne 0x4081c0
push str.Server.Ini
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push 0x20
xor eax, eax
lea ecx, [esp + 0x74]
push ecx
push 0x45ec69
push str.Channeling
push str.Server
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.dream
lea edx, [esp + 0x70]
push edx
call esi
test eax, eax
jne 0x40825c
push 5
lea esi, [ebp + 0xd50]
push str.dream
mov ecx, esi
call fcn.00401da0
jmp 0x4083bf
push str.ongate
lea eax, [esp + 0x70]
push eax
call esi
test eax, eax
jne 0x408285
push 6
lea esi, [ebp + 0xd50]
push str.ongate
mov ecx, esi
call fcn.00401da0
jmp 0x4083bf
mov eax, edi
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4082a0
sub eax, esi
push eax
push edi
lea ecx, [esp + 0x3c]
call fcn.00401da0
mov byte [esp + 0x19c], 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x58]
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401cc0
mov byte [esp + 0x1b8], 2
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x1bc], 1
mov ecx, ebp
call fcn.00407c60
mov byte [esp + 0x19c], 3
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00401cc0
mov byte [esp + 0x19c], 1
cmp dword [esp + 0x30], 0x10
jb 0x40832d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00421b49
add esp, 4
push 5
push ebx
push str.dream
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00406cc0
cmp eax, 0xffffffff
je 0x408365
push 5
lea esi, [ebp + 0xd50]
push str.dream
mov ecx, esi
call fcn.00401da0
jmp 0x408394
push 6
push ebx
push str.ongate
lea ecx, [esp + 0x40]
call fcn.00406cc0
lea esi, [ebp + 0xd50]
mov ecx, esi
cmp eax, 0xffffffff
je 0x40838a
push str.ongate
jmp 0x40838f
push str.dream
call fcn.00404840
mov byte [esp + 0x19c], bl
cmp dword [esp + 0x4c], 0x10
jb 0x4083af
mov edx, dword [esp + 0x38]
push edx
call fcn.00421b49
add esp, 4
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov eax, dword [esi + 0x14]
push 6
push str.ongate
push eax
push ebx
mov ecx, esi
call fcn.00406e50
test eax, eax
jne 0x408403
push 4
push str.1027
lea ecx, [ebp + 0xd34]
call fcn.00401da0
push 0x2a
lea ecx, [ebp + 0xcec]
push str.http:__knight.ongate.com_launch_launch.php
call fcn.00404290
push 0x19
push str.http:__knight.ongate.com_
jmp 0x408441
mov ecx, dword [esi + 0x14]
push 5
push str.dream
push ecx
push ebx
mov ecx, esi
call fcn.00406e50
push 4
lea ecx, [ebp + 0xd34]
push str.1000
call fcn.00401da0
push 0x29
push str.http:__knight.mgame.com_launch_launch.php
lea ecx, [ebp + 0xcec]
call fcn.00404290
push 0x1d
push str.http:__www.hex_ko.com
lea ecx, [esp + 0x58]
call fcn.00401da0
mov ebp, 0x10
cmp dword [esi + 0x18], ebp
jb 0x408459
mov esi, dword [esi + 4]
jmp 0x40845c
add esi, 4
push edi
push esi
push str.Channeling
push str.Server
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [esp + 0x19c], 0xffffffff
cmp dword [esp + 0x68], ebp
jb 0x40848c
mov edx, dword [esp + 0x54]
push edx
call fcn.00421b49
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.0044014d
add esp, 0x18c
ret