Function at 0x10071540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015ce3b
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x1019c880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x100717f1
cmp dword [ebp - 0x14c], 1
je 0x1007158f
jmp 0x1007180c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
nop
push str.RebirthClient.exe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [ebp - 0x144]
push edx
call fcn.1006e490
add esp, 8
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
push eax
call fcn.1006c410
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x100715dd
mov dword [ebp - 0x150], 1
jmp 0x100715e7
mov dword [ebp - 0x150], 0
mov dl, byte [ebp - 0x150]
mov byte [ebp - 0x145], dl
lea ecx, [ebp - 0x144]
call fcn.10039e80
movzx eax, byte [ebp - 0x145]
test eax, eax
je 0x10071610
mov al, 1
jmp 0x1007180e
push str.log_log.txt
lea ecx, [ebp - 0x12c]
call fcn.1006c390
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.1006fe00
add esp, 4
mov byte [ebp - 0x146], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.1006dec0
movzx edx, byte [ebp - 0x146]
test edx, edx
je 0x1007169f
push 1
lea ecx, [ebp - 0x204]
call fcn.1006ce60
mov dword [ebp - 4], 1
push 0x40
push 0x12
push str.log_log.txt
lea ecx, [ebp - 0x204]
call fcn.100702a0
lea ecx, [ebp - 0x204]
call fcn.1006f930
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x204]
call fcn.1006e0d0
nop
call fcn.100b85a0
movzx eax, al
test eax, eax
jne 0x100716d6
push str.Error_06
call fcn.1008dcc0
add esp, 4
mov ecx, dword [0x101d6cac]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1c
call fcn.100b11b0
add esp, 4
mov al, 1
jmp 0x1007180e
call fcn.100b84e0
nop
call fcn.100b8400
movzx edx, al
test edx, edx
jne 0x10071712
push str.Error_05
call fcn.1008dcc0
add esp, 4
mov eax, dword [0x101d6cac]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x18
call fcn.100b11b0
add esp, 4
mov al, 1
jmp 0x1007180e
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1016b794
lea edx, [ebp - 0x114]
push edx
call fcn.1006cb40
add esp, 8
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x101d6cac], eax
cmp dword [0x101d6cac], 0
je 0x100717ef
call fcn.1009eb40
push 0x1016b7a0
mov ecx, dword [0x101d6cac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101d6ca4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x101d6fc8], eax
mov edx, dword [ebp + 8]
push edx
call fcn.100bb450
add esp, 4
call fcn.100b7c00
call fcn.100b7720
call fcn.10077850
call fcn.1008d860
call fcn.100b2220
call fcn.100bae80
call fcn.100b2550
call fcn.100b3520
call fcn.100aa930
call fcn.100b7d30
call fcn.100b2ae0
call fcn.1007f7f0
call fcn.100aa660
call fcn.100b1460
call fcn.100b8730
call fcn.100b9ea0
call fcn.10076360
call fcn.10086880
call fcn.1007f1c0
call fcn.100a9880
nop
jmp 0x1007180c
cmp dword [0x101d6cac], 0
je 0x1007180c
call fcn.100a9920
mov eax, dword [0x101d6cac]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011118e
mov esp, ebp
pop ebp
ret 0xc