Function at 0x41d030
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x165c
call fcn.004014d0
mov eax, dword [0x44d024]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45029c], 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 0x41d09a
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.0040d410
push ebx
push str.rtldrNativeLoadSystem__s____is_called_before_IPRT_has_configured_the_windows_loader__n
call fcn.0040d420
add esp, 0x18
call fcn.0040d440
int3
cmp byte [0x45181c], 0
jne 0x41d0c0
push str.RtlDosApplyFileIsolationRedirection_Ustr
push dword [0x4502dc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x451820], eax
mov byte [0x45181c], 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 0x41d0fa
pop esi
mov eax, 0xffffff88
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401220
mov esp, ebp
pop ebp
ret
cmp dword [0x451820], 0
push edi
je 0x41d303
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.00405eb0
add esp, 0x18
test eax, eax
js 0x41d303
mov esi, dword [0x451820]
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 0x428174
lea eax, [ebp - 0x165c]
push eax
push 1
call dword [section..rdata]
call esi
test eax, eax
js 0x41d2fd
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 0x41d2ea
mov ebx, dword [ebx + 4]
jmp 0x41d200
movzx ecx, word [ebp + eax*2 - 0x20c]
lea edx, [ebx + eax*2]
movzx esi, word [edx]
cmp ecx, 0x5c
je 0x41d24e
cmp ecx, 0x2f
je 0x41d24e
cmp cx, si
je 0x41d24b
cmp ecx, 0x7f
jae 0x41d29b
cmp esi, 0x7f
jae 0x41d29b
mov edi, ecx
lea ecx, [edi - 0x41]
cmp ecx, 0x1a
jae 0x41d234
add edi, 0x20
mov edx, esi
lea ecx, [edx - 0x41]
cmp ecx, 0x1a
jae 0x41d241
add edx, 0x20
cmp edi, edx
jne 0x41d29b
mov edi, dword [ebp - 0x1648]
inc eax
jmp 0x41d293
cmp esi, 0x5c
je 0x41d258
cmp esi, 0x2f
jne 0x41d29b
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 0x41d29b
movzx ecx, word [esi + edx]
cmp ecx, 0x5c
je 0x41d286
cmp ecx, 0x2f
jne 0x41d293
cmp word [ebx + eax*2], 0x5c
je 0x41d270
cmp word [edx], 0x2f
je 0x41d270
cmp eax, edi
jb 0x41d200
cmp dword [ebp - 0x1624], 2
jb 0x41d2ea
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.0040ed70
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 0x41d361
jmp 0x41d2f7
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.0040ed70
add esp, 0x18
test eax, eax
js 0x41d3a4
push ebx
lea eax, [ebp - 0x1620]
push 0x1004
push eax
call fcn.00422ae0
add esp, 0xc
test esi, esi
je 0x41d35d
test eax, eax
js 0x41d3a4
push esi
lea eax, [ebp - 0x1620]
push 0x1004
push eax
call fcn.00422b70
add esp, 0xc
test eax, eax
js 0x41d3a4
lea eax, [ebp - 0x1620]
push eax
call fcn.00422a50
add esp, 4
test al, al
je 0x41d39f
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x1620]
push dword [ebp - 0x164c]
push eax
call fcn.00410c50
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401220
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.00401220
mov esp, ebp
pop ebp
ret