Function at 0x12a0bf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x165c
call fcn.012712c0
mov eax, dword [0x12fceb0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x12fe3c4], 0
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1634], ebx
mov dword [ebp - 0x162c], esi
mov dword [ebp - 0x164c], eax
jne 0x12a0c5a
push str.int___cdecl_rtldrNativeLoadSystem_const_char__const_char__unsigned_int_struct_RTLDRMODINTERNAL__
push str.D:_tinderbox_add_7.0_srcVBoxRuntime_r3winldrNative_win.cpp
push 0xbf
push str.g_hModKernel32
call fcn.01299f60
push ebx
push str.rtldrNativeLoadSystem__s____is_called_before_IPRT_has_configured_the_windows_loader__n
call fcn.01299f70
add esp, 0x18
call fcn.01299f90
int3
cmp byte [0x12ff51c], 0
jne 0x12a0c80
push str.RtlDosApplyFileIsolationRedirection_Ustr
push dword [0x12fe404]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x12ff520], eax
mov byte [0x12ff51c], 1
lea eax, [ebp - 0x1620]
mov dword [ebp - 0x1638], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jb 0x12a0cba
pop esi
mov eax, 0xffffff88
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
cmp dword [0x12ff520], 0
push edi
je 0x12a0ec3
lea eax, [ebp - 0x414]
mov dword [ebp - 0x1630], 0
push str.D:_tinderbox_add_7.0_srcVBoxRuntime_r3winldrNative_win.cpp
mov dword [ebp - 0x1644], eax
lea eax, [ebp - 0x1630]
push eax
push 0x104
lea eax, [ebp - 0x1644]
push eax
push 0xffffffffffffffff
push ebx
call fcn.012982b0
add esp, 0x18
test eax, eax
js 0x12a0ec3
mov esi, dword [0x12ff520]
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x1650], eax
mov ecx, esi
xor eax, eax
mov dword [ebp - 0x1654], 0x2060000
mov dword [ebp - 0x1640], eax
mov dword [ebp - 0x163c], eax
mov dword [ebp - 0x1628], eax
mov eax, dword [ebp - 0x1630]
add eax, eax
mov word [ebp - 0x165c], ax
add eax, 2
push 0
mov word [ebp - 0x165a], ax
lea eax, [ebp - 0x414]
push 0
push 0
mov dword [ebp - 0x1658], eax
lea eax, [ebp - 0x1628]
push eax
lea eax, [ebp - 0x1640]
push eax
lea eax, [ebp - 0x1654]
push eax
push 0x12cee7c
lea eax, [ebp - 0x165c]
push eax
push 1
call dword [section..rdata]
call esi
test eax, eax
js 0x12a0ebd
mov ebx, dword [ebp - 0x1628]
xor eax, eax
mov dword [ebp - 0x1624], eax
movzx edi, word [ebx]
mov dword [ebp - 0x1648], edi
test edi, edi
je 0x12a0eaa
mov ebx, dword [ebx + 4]
jmp 0x12a0dc0
movzx ecx, word [ebp + eax*2 - 0x20c]
lea edx, [ebx + eax*2]
movzx esi, word [edx]
cmp ecx, 0x5c
je 0x12a0e0e
cmp ecx, 0x2f
je 0x12a0e0e
cmp cx, si
je 0x12a0e0b
cmp ecx, 0x7f
jae 0x12a0e5b
cmp esi, 0x7f
jae 0x12a0e5b
mov edi, ecx
lea ecx, [edi - 0x41]
cmp ecx, 0x1a
jae 0x12a0df4
add edi, 0x20
mov edx, esi
lea ecx, [edx - 0x41]
cmp ecx, 0x1a
jae 0x12a0e01
add edx, 0x20
cmp edi, edx
jne 0x12a0e5b
mov edi, dword [ebp - 0x1648]
inc eax
jmp 0x12a0e53
cmp esi, 0x5c
je 0x12a0e18
cmp esi, 0x2f
jne 0x12a0e5b
xor ecx, ecx
lea esi, [ebp - 0x20c]
cmp ecx, eax
sbb ecx, ecx
neg ecx
add dword [ebp - 0x1624], ecx
sub esi, ebx
mov edi, edi
inc eax
lea edx, [edx + 2]
cmp eax, edi
jae 0x12a0e5b
movzx ecx, word [esi + edx]
cmp ecx, 0x5c
je 0x12a0e46
cmp ecx, 0x2f
jne 0x12a0e53
cmp word [ebx + eax*2], 0x5c
je 0x12a0e30
cmp word [edx], 0x2f
je 0x12a0e30
cmp eax, edi
jb 0x12a0dc0
cmp dword [ebp - 0x1624], 2
jb 0x12a0eaa
mov ecx, dword [ebp - 0x1628]
lea edx, [ebp - 0x1638]
push str.D:_tinderbox_add_7.0_srcVBoxRuntime_r3winldrNative_win.cpp
push 0
push 0x1004
movzx eax, word [ecx]
push edx
shr eax, 1
push eax
push dword [ecx + 4]
call fcn.01298ce0
add esp, 0x18
xor ebx, ebx
test eax, eax
lea eax, [ebp - 0x1640]
setns bl
push eax
dec ebx
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
and ebx, 0xffffffcc
jns 0x12a0f21
jmp 0x12a0eb7
lea eax, [ebp - 0x1640]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov ebx, dword [ebp - 0x1634]
mov esi, dword [ebp - 0x162c]
push str.D:_tinderbox_add_7.0_srcVBoxRuntime_r3winldrNative_win.cpp
push 0
push 0x1004
lea eax, [ebp - 0x1638]
push eax
lea eax, [ebp - 0x20c]
push 0xffffffffffffffff
push eax
call fcn.01298ce0
add esp, 0x18
test eax, eax
js 0x12a0f64
push ebx
lea eax, [ebp - 0x1620]
push 0x1004
push eax
call fcn.012adcf0
add esp, 0xc
test esi, esi
je 0x12a0f1d
test eax, eax
js 0x12a0f64
push esi
lea eax, [ebp - 0x1620]
push 0x1004
push eax
call fcn.0128d250
add esp, 0xc
test eax, eax
js 0x12a0f64
lea eax, [ebp - 0x1620]
push eax
call fcn.012a8360
add esp, 4
test al, al
je 0x12a0f5f
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x1620]
push dword [ebp - 0x164c]
push eax
call fcn.0128ffd0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffd9e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01271180
mov esp, ebp
pop ebp
ret