Function at 0x100479a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011bef3
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 0x10047e5d
sub eax, 1
jne 0x10047e77
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.10045f80
add esp, 8
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x10047a17
mov eax, dword [eax]
push 0x11
push str.RebirthClient.exe
push ecx
push eax
call fcn.10044d50
add esp, 0x10
mov byte [ebp - 0x145], al
lea ecx, [ebp - 0x144]
call fcn.10022b40
cmp byte [ebp - 0x145], 0
je 0x10047e77
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.100e9050
push 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.100ea9f0
mov eax, dword [ebp - 0x154]
add esp, 0x1c
test eax, eax
je 0x10047ac0
mov byte [ebp - 0x145], 1
cmp eax, 1
jne 0x10047ac7
mov byte [ebp - 0x145], 0
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x10047b0e
mov edx, dword [ebp - 0x12c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10047b04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047e96
push ecx
push edx
call fcn.100d04ec
add esp, 8
cmp byte [ebp - 0x145], 0
je 0x10047d1c
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x204], 0x1012b2a4
call fcn.100450c0
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.10045140
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.100d04bc
mov esi, eax
add esp, 4
test esi, esi
je 0x10047bca
push 1
mov byte [ebp - 4], 4
call fcn.100d2b57
add esp, 4
mov dword [esi + 4], eax
jmp 0x10047bcc
xor esi, esi
lea ecx, [ebp - 0x200]
mov dword [ebp - 0x1cc], esi
call fcn.100463e0
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.100469c0
lea ecx, [ebp - 0x200]
call fcn.10046530
test eax, eax
jne 0x10047d0a
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 0x10047e9b
lea ecx, [ebp - 0x204]
mov dword [ebp - 4], 0xffffffff
call fcn.10045bb0
call fcn.10078470
test al, al
jne 0x10047d4d
push str.Error_06
call fcn.10057ad0
add esp, 4
push dword [0x10194b94]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1c
call fcn.10070380
add esp, 4
jmp 0x10047e77
call fcn.100783b0
call fcn.10078300
test al, al
jne 0x10047d83
push str.Error_05
call fcn.10057ad0
add esp, 4
push dword [0x10194b94]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x18
call fcn.10070380
add esp, 4
jmp 0x10047e77
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.100fedf0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10194b94], eax
test eax, eax
je 0x10047e77
call fcn.10060ca0
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 [0x10194eb0], eax
call fcn.1007aa70
add esp, 4
call fcn.100779f0
call fcn.10077070
call fcn.1004ab70
call fcn.10057850
call fcn.10071010
call fcn.1007a370
call fcn.100715e0
call fcn.10072340
call fcn.1006af60
call fcn.10077b90
call fcn.10071b10
call fcn.1004f720
call fcn.1006abd0
call fcn.100706d0
call fcn.10078620
call fcn.10079ab0
call fcn.10049d70
call fcn.10053400
call fcn.1004f250
call fcn.10069970
jmp 0x10047e77
cmp dword [0x10194b94], 0
je 0x10047e77
call fcn.10069b10
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.100d04ae
mov esp, ebp
pop ebp
ret 0xc
call fcn.100fc365
test cl, 4
je 0x10047ea7
mov esi, str.ios_base::badbit_set
jmp 0x10047eb7
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.100468d0
add esp, 8
lea ecx, [ebp - 0x128]
push eax
push esi
call fcn.100456e0
push 0x10152860
lea eax, [ebp - 0x128]
push eax
call fcn.100ed62d
int3