Function at 0x1012e010
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10179eba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov dword [ebp - 0x88], 0
lea eax, [ebp - 0x91]
mov dword [ebp - 0x90], eax
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.10002cf0
mov dword [ebp - 4], 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x1012e225
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100b9926
add esp, 4
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jbe 0x1012e209
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x10]
ja 0x1012e209
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xa0], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.100e6380
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
sub eax, 1
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [ebp - 0x18]
jbe 0x1012e11a
call fcn.100bcb20
cmp dword [ebp - 0x14], 0x10
jb 0x1012e12b
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x118], edx
jmp 0x1012e134
lea eax, [ebp - 0x28]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
add ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x1012e1a5
mov dword [ebp - 0x11c], 0x10189b38
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x11c]
mov dl, byte [ecx]
mov byte [ebp - 0x121], dl
add dword [ebp - 0x11c], 1
cmp byte [ebp - 0x121], 0
jne 0x1012e161
mov eax, dword [ebp - 0x11c]
sub eax, dword [ebp - 0x120]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
push ecx
push 0x10189b38
lea ecx, [ebp - 0x2c]
call fcn.10008ee0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.10002cf0
mov edx, dword [0x1018c500]
push edx
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.100034b0
mov ecx, dword [ebp - 0x88]
or ecx, 1
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
push eax
call fcn.100bcb83
add esp, 4
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10002cf0
mov eax, dword [ebp + 8]
jmp 0x1012e2e6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0xd0]
push edx
call fcn.100bcb83
add esp, 4
lea eax, [ebp - 0xd9]
mov dword [ebp - 0xd8], eax
push 0
push 0
lea ecx, [ebp - 0x84]
call fcn.10002cf0
mov dword [ebp - 0x12c], str.Cannot_get_current_directory
mov ecx, dword [ebp - 0x12c]
add ecx, 1
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x12c]
mov al, byte [edx]
mov byte [ebp - 0x131], al
add dword [ebp - 0x12c], 1
cmp byte [ebp - 0x131], 0
jne 0x1012e259
mov ecx, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x130]
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
push edx
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x84]
call fcn.10003590
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x68]
call fcn.100fcbd0
push 0x101aa74c
lea ecx, [ebp - 0x68]
push ecx
call fcn.100bcb39
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.10002cf0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10002cf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret