Function at 0x41a610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x165c
call fcn.004014f0
mov eax, dword [0x4462b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x446fcc], 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 0x41a67a
push str.int___cdecl_rtldrNativeLoadSystem_const_char__const_char__unsigned_int_struct_RTLDRMODINTERNAL__
push str.D:_tinderbox_testsuite_srcVBoxRuntime_r3winldrNative_win.cpp
push 0xbf
push str.g_hModKernel32
call fcn.00411200
push ebx
push str.rtldrNativeLoadSystem__s____is_called_before_IPRT_has_configured_the_windows_loader__n
call fcn.00411210
add esp, 0x18
call fcn.00411230
int3
cmp byte [0x4492dc], 0
jne 0x41a6a0
push str.RtlDosApplyFileIsolationRedirection_Ustr
push dword [0x44700c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4492e0], eax
mov byte [0x4492dc], 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 0x41a6da
pop esi
mov eax, 0xffffff88
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013b0
mov esp, ebp
pop ebp
ret
cmp dword [0x4492e0], 0
push edi
je 0x41a8e3
lea eax, [ebp - 0x414]
mov dword [ebp - 0x1630], 0
push str.D:_tinderbox_testsuite_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.00412f20
add esp, 0x18
test eax, eax
js 0x41a8e3
mov esi, dword [0x4492e0]
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 0x424e34
lea eax, [ebp - 0x165c]
push eax
push 1
call dword [section..rdata]
call esi
test eax, eax
js 0x41a8dd
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 0x41a8ca
mov ebx, dword [ebx + 4]
jmp 0x41a7e0
movzx ecx, word [ebp + eax*2 - 0x20c]
lea edx, [ebx + eax*2]
movzx esi, word [edx]
cmp ecx, 0x5c
je 0x41a82e
cmp ecx, 0x2f
je 0x41a82e
cmp cx, si
je 0x41a82b
cmp ecx, 0x7f
jae 0x41a87b
cmp esi, 0x7f
jae 0x41a87b
mov edi, ecx
lea ecx, [edi - 0x41]
cmp ecx, 0x1a
jae 0x41a814
add edi, 0x20
mov edx, esi
lea ecx, [edx - 0x41]
cmp ecx, 0x1a
jae 0x41a821
add edx, 0x20
cmp edi, edx
jne 0x41a87b
mov edi, dword [ebp - 0x1648]
inc eax
jmp 0x41a873
cmp esi, 0x5c
je 0x41a838
cmp esi, 0x2f
jne 0x41a87b
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 0x41a87b
movzx ecx, word [esi + edx]
cmp ecx, 0x5c
je 0x41a866
cmp ecx, 0x2f
jne 0x41a873
cmp word [ebx + eax*2], 0x5c
je 0x41a850
cmp word [edx], 0x2f
je 0x41a850
cmp eax, edi
jb 0x41a7e0
cmp dword [ebp - 0x1624], 2
jb 0x41a8ca
mov ecx, dword [ebp - 0x1628]
lea edx, [ebp - 0x1638]
push str.D:_tinderbox_testsuite_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.00410d00
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 0x41a941
jmp 0x41a8d7
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_testsuite_srcVBoxRuntime_r3winldrNative_win.cpp
push 0
push 0x1004
lea eax, [ebp - 0x1638]
push eax
lea eax, [ebp - 0x20c]
push 0xffffffffffffffff
push eax
call fcn.00410d00
add esp, 0x18
test eax, eax
js 0x41a984
push ebx
lea eax, [ebp - 0x1620]
push 0x1004
push eax
call fcn.0041c570
add esp, 0xc
test esi, esi
je 0x41a93d
test eax, eax
js 0x41a984
push esi
lea eax, [ebp - 0x1620]
push 0x1004
push eax
call fcn.0041a300
add esp, 0xc
test eax, eax
js 0x41a984
lea eax, [ebp - 0x1620]
push eax
call fcn.0041c4e0
add esp, 4
test al, al
je 0x41a97f
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x1620]
push dword [ebp - 0x164c]
push eax
call fcn.00410590
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013b0
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.004013b0
mov esp, ebp
pop ebp
ret