Function at 0x10047a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011c1b3
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x1015bc40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14c], 0
sub eax, 0
je 0x10047f2d
sub eax, 1
jne 0x10047f47
push edi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.10046050
add esp, 8
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x10047ae7
mov eax, dword [eax]
push 0x11
push str.RebirthClient.exe
push ecx
push eax
call fcn.10044e20
add esp, 0x10
mov byte [ebp - 0x145], al
lea ecx, [ebp - 0x144]
call fcn.10022c30
cmp byte [ebp - 0x145], 0
je 0x10047f47
xorps xmm0, xmm0
mov dword [ebp - 0x118], 7
movups xmmword [ebp - 0x12c], xmm0
xor eax, eax
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x12c]
push eax
push 0x1012b2cb
push str.log_log.txt
mov dword [ebp - 0x11c], 0
call fcn.100e9320
push 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.100eacc0
mov eax, dword [ebp - 0x154]
add esp, 0x1c
test eax, eax
je 0x10047b90
mov byte [ebp - 0x145], 1
cmp eax, 1
jne 0x10047b97
mov byte [ebp - 0x145], 0
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x10047bde
mov edx, dword [ebp - 0x12c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10047bd4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047f66
push ecx
push edx
call fcn.100d08bc
add esp, 8
cmp byte [ebp - 0x145], 0
je 0x10047dec
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x204], 0x1012b2a4
call fcn.10045190
push 0
push 0
lea eax, [ebp - 0x200]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x204]
mov dword [ebp - 0x14c], 1
call fcn.10045210
mov eax, dword [ebp - 0x204]
xorps xmm0, xmm0
push 8
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x204]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x208], eax
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
movups xmmword [ebp - 0x1fc], xmm0
movups xmmword [ebp - 0x1ec], xmm0
movups xmmword [ebp - 0x1dc], xmm0
call fcn.100d088c
mov esi, eax
add esp, 4
test esi, esi
je 0x10047c9a
push 1
mov byte [ebp - 4], 4
call fcn.100d2f27
add esp, 4
mov dword [esi + 4], eax
jmp 0x10047c9c
xor esi, esi
lea ecx, [ebp - 0x200]
mov dword [ebp - 0x1cc], esi
call fcn.100464b0
mov ecx, dword [0x10194ba0]
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x1f0], eax
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x1e4], eax
lea eax, [ebp - 0x1e8]
mov dword [ebp - 0x1e0], eax
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1d4], eax
lea eax, [ebp - 0x1d8]
mov dword [ebp - 0x1d0], eax
mov eax, dword [0x10194b9c]
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x1b8], 0
mov byte [ebp - 0x1c3], 0
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 0x1c8], 0
push 0x40
push 0x12
push str.log_log.txt
lea ecx, [ebp - 0x204]
mov dword [ebp - 4], 5
call fcn.10046a90
lea ecx, [ebp - 0x200]
call fcn.10046600
test eax, eax
jne 0x10047dda
mov eax, dword [ebp - 0x204]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x1cc], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x1f8]
and eax, 0x17
mov dword [ebp + ecx - 0x1f8], eax
mov ecx, dword [ebp + ecx - 0x1f4]
and ecx, eax
jne 0x10047f6b
lea ecx, [ebp - 0x204]
mov dword [ebp - 4], 0xffffffff
call fcn.10045c80
call fcn.100787c0
test al, al
jne 0x10047e1d
push str.Error_06
call fcn.10057d90
add esp, 4
push dword [0x10194b94]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1c
call fcn.10070680
add esp, 4
jmp 0x10047f47
call fcn.10078700
call fcn.10078650
test al, al
jne 0x10047e53
push str.Error_05
call fcn.10057d90
add esp, 4
push dword [0x10194b94]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x18
call fcn.10070680
add esp, 4
jmp 0x10047f47
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1012b2e4
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.100ff0c0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10194b94], eax
test eax, eax
je 0x10047f47
call fcn.10060f60
push 0x1012b2f0
push dword [0x10194b94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10194b8c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [0x10194eb8], eax
call fcn.1007ae00
add esp, 4
call fcn.10077d40
call fcn.10077390
call fcn.1004ea00
call fcn.10057b10
call fcn.10071080
call fcn.1007a700
call fcn.10071650
call fcn.100723b0
call fcn.1006b230
call fcn.10077ee0
call fcn.10071b80
call fcn.1004f9f0
call fcn.1006aea0
call fcn.100707f0
call fcn.10078970
call fcn.10079e30
call fcn.1004bae0
call fcn.100536d0
call fcn.1004f520
call fcn.10069c40
jmp 0x10047f47
cmp dword [0x10194b94], 0
je 0x10047f47
call fcn.10069de0
push dword [0x10194b94]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d087e
mov esp, ebp
pop ebp
ret 0xc
call fcn.100fc635
test cl, 4
je 0x10047f77
mov esi, str.ios_base::badbit_set
jmp 0x10047f87
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x154]
push 1
push eax
call fcn.100469a0
add esp, 8
lea ecx, [ebp - 0x128]
push eax
push esi
call fcn.100457b0
push 0x10152870
lea eax, [ebp - 0x128]
push eax
call fcn.100ed8fd
int3