Function at 0x408320
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x450b9d
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0xdc], eax
push ebx
push ebp
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
lea ecx, [esi + 4]
mov dword [esp + 0xcc], esi
mov dword [esi], vtable.CClientBase.0
call fcn.00425900
xor eax, eax
mov dword [esp + 0xf8], eax
mov dword [esi + 0x444c], 0xf
mov dword [esi + 0x4448], eax
mov byte [esi + 0x4438], al
mov ebp, 1
mov byte [esp + 0xf8], 1
push ebp
push 2
lea ecx, [esp + 0x54]
mov dword [esi + 0x4450], ebp
mov dword [esi + 0x4454], eax
mov dword [esi + 0x4458], ebp
call fcn.00404370
lea eax, [esp + 0x4c]
push 0x45792c
push eax
mov byte [esp + 0x100], 2
call fcn.004073a0
add esp, 8
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x50]
call fcn.004044d0
mov edi, 0x10
mov byte [esp + 0xf8], 3
cmp dword [eax + 0x18], edi
jb 0x4083f8
mov eax, dword [eax + 4]
jmp 0x4083fb
add eax, 4
push eax
push 0x457954
push 9
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x48], edi
jb 0x40842c
mov edx, dword [esp + 0x34]
push edx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0xf8], 1
call fcn.00404450
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.004339e9
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esp, 4
lea eax, [esi + 0x434]
push 0x104
push eax
call ebx
call fcn.0041b080
test eax, eax
je 0x408493
lea ebx, [esi + 0x834]
call fcn.00414460
mov ecx, dword [eax + 0x188]
push 0x104
push ebx
call ecx
jmp 0x4084a1
lea eax, [esi + 0x834]
push 0x104
push eax
call ebx
push 0x104
lea ebx, [esi + 0xc34]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
jne 0x40857b
push ebp
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
mov byte [esp + 0xf8], 4
call sub.WS2_32.dll_WSAGetLastError
push eax
push ecx
lea edx, [esp + 0x54]
push 0x457984
push edx
call fcn.004073a0
add esp, 0xc
mov ecx, eax
call fcn.00414f90
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0xf8], 5
cmp dword [eax + 0x18], edi
jb 0x408518
mov eax, dword [eax + 4]
jmp 0x40851b
add eax, 4
push eax
push 0x457954
push 0x18
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x48], edi
jb 0x40854c
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0xf8], 1
call fcn.00404450
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
push str.win32
push ebx
call fcn.0041ad40
add esp, 8
test eax, eax
lea ebp, [esi + 0x1034]
push ebx
je 0x40859b
push 0x4579c0
jmp 0x4085a0
push str._swin32
push ebp
call fcn.00414510
add esp, 0xc
call fcn.00414530
cmp dword [eax], 7
jne 0x4085cd
push ebx
lea edi, [esi + 0x1434]
push 0x4579c0
push edi
call fcn.00414510
add esp, 0xc
jmp 0x4086f3
lea eax, [esp + 0x30]
push eax
call fcn.00417160
add esp, 4
mov byte [esp + 0xf8], 6
cmp dword [eax + 0x18], edi
jb 0x4085ec
mov edx, dword [eax + 4]
jmp 0x4085ef
lea edx, [eax + 4]
mov eax, edx
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], 0
mov byte [esp + 0xd4], 0
lea ebx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408612
sub eax, ebx
push eax
push edx
lea ecx, [esp + 0xd8]
call fcn.00405b30
mov byte [esp + 0xf8], 8
cmp dword [esp + 0x48], edi
jb 0x408646
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00433d63
add esp, 4
mov edx, dword [esp + 0xe4]
add edx, 0xffffffff
push edx
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
call fcn.00403e30
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xdc]
mov byte [esp + 0x104], 9
call fcn.00404b70
cmp dword [esp + 0x2c], edi
jb 0x4086a5
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00433d63
add esp, 4
cmp dword [esp + 0xe8], edi
mov eax, dword [esp + 0xd4]
jae 0x4086bc
lea eax, [esp + 0xd4]
push eax
lea edi, [esi + 0x1434]
push 0x4579c0
push edi
call fcn.00414510
add esp, 0xc
mov byte [esp + 0xf8], 1
cmp dword [esp + 0xe8], 0x10
jb 0x4086f3
mov edx, dword [esp + 0xd4]
push edx
call fcn.00433d63
add esp, 4
lea eax, [esi + 0x434]
push eax
lea eax, [esi + 0x1834]
push str._sywtemp
push eax
call fcn.00414510
add esp, 0xc
lea eax, [esi + 0x834]
push eax
lea ebx, [esi + 0x1c34]
push str._syw
push ebx
call fcn.00414510
add esp, 0xc
push ebp
lea eax, [esi + 0x34]
push str._sconfig.ini
push eax
call fcn.00414510
add esp, 0xc
push ebp
lea ecx, [esi + 0x2434]
push str._smd5.ini
push ecx
call fcn.00414510
add esp, 0xc
push ebp
lea edx, [esi + 0x3c34]
push str._sywSMPASvr.exe
push edx
call fcn.00414510
add esp, 0xc
push edi
lea eax, [esi + 0x2c34]
push str._sconfig.ini
push eax
call fcn.00414510
add esp, 0xc
push edi
lea ecx, [esi + 0x3034]
push str._smd5.ini
push ecx
call fcn.00414510
add esp, 0xc
push edi
lea edx, [esi + 0x4034]
push str._sywSMPASvr.exe
push edx
call fcn.00414510
add esp, 0xc
lea ecx, [esi + 0x434]
push ecx
lea eax, [esi + 0x2034]
push str._sdrivers
push eax
call fcn.00414510
add esp, 0xc
push edi
lea eax, [esi + 0x2834]
push str._s_backup
push eax
call fcn.00414510
add esp, 0xc
push ebp
lea eax, [esi + 0x3434]
push str._smd5.dat
push eax
call fcn.00414510
add esp, 0xc
push edi
lea ecx, [esi + 0x3834]
push str._smd5.dat
push ecx
call fcn.00414510
add esp, 0xc
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
mov byte [esp + 0xf8], 0xa
push ebp
push ecx
push 0x457a38
push ecx
push str.szWin32Path
push ecx
lea edx, [esp + 0x64]
push str.Path:
push edx
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
call fcn.004044d0
mov ebp, 0x10
mov byte [esp + 0xf8], 0xb
cmp dword [eax + 0x18], ebp
jb 0x408873
mov eax, dword [eax + 4]
jmp 0x408876
add eax, 4
push eax
push 0x457954
push 0x43
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x4088a7
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0xf8], 1
call fcn.00404450
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
push edi
push ecx
push 0x457a38
push ecx
push str.szYwPath
push ecx
lea eax, [esp + 0x64]
push str.Path:
push eax
mov byte [esp + 0x118], 0xc
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0xf8], 0xd
cmp dword [eax + 0x18], ebp
jb 0x408946
mov eax, dword [eax + 4]
jmp 0x408949
add eax, 4
push eax
push 0x457954
push 0x44
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x40897a
mov edx, dword [esp + 0x18]
push edx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0xf8], 1
call fcn.00404450
lea eax, [esp + 0x98]
mov edi, vtable.std::ios_base.0
push eax
mov dword [esp + 0x9c], edi
call fcn.004339e9
add esp, 4
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
push ebx
push ecx
push 0x457a38
push ecx
push str.szNativeYwPath
push ecx
lea ecx, [esp + 0x64]
push str.Path:
push ecx
mov byte [esp + 0x118], 0xe
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 8
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0xf8], 0xf
cmp dword [eax + 0x18], ebp
jb 0x408a1a
mov eax, dword [eax + 4]
jmp 0x408a1d
add eax, 4
push eax
push 0x457954
push 0x45
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x408a4e
mov eax, dword [esp + 0x18]
push eax
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0xf8], 1
call fcn.00404450
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0x9c], edi
call fcn.004339e9
add esp, 4
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
lea eax, [esi + 0x34]
push eax
push ecx
push 0x457a38
push ecx
push str.szWin32IniPath
push ecx
lea edx, [esp + 0x64]
push str.Path:
push edx
mov byte [esp + 0x118], 0x10
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0xf8], 0x11
cmp dword [eax + 0x18], ebp
jb 0x408aec
mov eax, dword [eax + 4]
jmp 0x408aef
add eax, 4
push eax
push 0x457954
push 0x46
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x408b20
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0xf8], 1
call fcn.00404450
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x9c], edi
call fcn.004339e9
add esp, 4
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
lea eax, [esi + 0x2034]
push eax
push ecx
push 0x457a38
push ecx
push str.szDriverPath
push ecx
lea eax, [esp + 0x64]
push str.Path:
push eax
mov byte [esp + 0x118], 0x12
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0xf8], 0x13
cmp dword [eax + 0x18], ebp
jb 0x408bc1
mov eax, dword [eax + 4]
jmp 0x408bc4
add eax, 4
push eax
push 0x457954
push 0x47
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x408bf5
mov edx, dword [esp + 0x18]
push edx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0xf8], 1
call fcn.00404450
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x9c], edi
call fcn.004339e9
add esp, 4
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
lea eax, [esi + 0x2834]
push eax
push ecx
push 0x457a38
push ecx
push str.szBackUpPath
push ecx
lea ecx, [esp + 0x64]
push str.Path:
push ecx
mov byte [esp + 0x118], 0x14
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 0xc
push eax
call fcn.004073a0
add esp, 8
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0xf8], 0x15
cmp dword [eax + 0x18], ebp
jb 0x408c96
mov eax, dword [eax + 4]
jmp 0x408c99
add eax, 4
push eax
push 0x457954
push 0x48
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x408cca
mov eax, dword [esp + 0x18]
push eax
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0xf8], 1
call fcn.00404450
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0x9c], edi
call fcn.004339e9
add esp, 4
lea edx, [esi + 0x10]
push edx
lea ecx, [esi + 4]
call fcn.00424cd0
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
lea eax, [esp + 0x4c]
push 0x457aa0
push eax
mov byte [esp + 0x100], 0x16
call fcn.004073a0
add esp, 8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0xf8], 0x17
cmp dword [eax + 0x18], ebp
jb 0x408d48
mov eax, dword [eax + 4]
jmp 0x408d4b
add eax, 4
push eax
push 0x457954
push 0x4d
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x408d7c
mov edx, dword [esp + 0x18]
push edx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0xf8], 1
call fcn.00404450
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x9c], edi
call fcn.004339e9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.00433d68
add esp, 0xec
ret