Function at 0x41ab80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x165c
call fcn.00401460
mov eax, dword [0x449158]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44b1e4], 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 0x41abea
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.00409ac0
push ebx
push str.rtldrNativeLoadSystem__s____is_called_before_IPRT_has_configured_the_windows_loader__n
call fcn.00409ad0
add esp, 0x18
call fcn.00409af0
int3
cmp byte [0x44d774], 0
jne 0x41ac10
push str.RtlDosApplyFileIsolationRedirection_Ustr
push dword [0x44b224]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44d778], eax
mov byte [0x44d774], 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 0x41ac4a
pop esi
mov eax, 0xffffff88
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401320
mov esp, ebp
pop ebp
ret
cmp dword [0x44d778], 0
push edi
je 0x41ae53
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.0040bc30
add esp, 0x18
test eax, eax
js 0x41ae53
mov esi, dword [0x44d778]
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 0x424ed4
lea eax, [ebp - 0x165c]
push eax
push 1
call dword [section..rdata]
call esi
test eax, eax
js 0x41ae4d
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 0x41ae3a
mov ebx, dword [ebx + 4]
jmp 0x41ad50
movzx ecx, word [ebp + eax*2 - 0x20c]
lea edx, [ebx + eax*2]
movzx esi, word [edx]
cmp ecx, 0x5c
je 0x41ad9e
cmp ecx, 0x2f
je 0x41ad9e
cmp cx, si
je 0x41ad9b
cmp ecx, 0x7f
jae 0x41adeb
cmp esi, 0x7f
jae 0x41adeb
mov edi, ecx
lea ecx, [edi - 0x41]
cmp ecx, 0x1a
jae 0x41ad84
add edi, 0x20
mov edx, esi
lea ecx, [edx - 0x41]
cmp ecx, 0x1a
jae 0x41ad91
add edx, 0x20
cmp edi, edx
jne 0x41adeb
mov edi, dword [ebp - 0x1648]
inc eax
jmp 0x41ade3
cmp esi, 0x5c
je 0x41ada8
cmp esi, 0x2f
jne 0x41adeb
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 0x41adeb
movzx ecx, word [esi + edx]
cmp ecx, 0x5c
je 0x41add6
cmp ecx, 0x2f
jne 0x41ade3
cmp word [ebx + eax*2], 0x5c
je 0x41adc0
cmp word [edx], 0x2f
je 0x41adc0
cmp eax, edi
jb 0x41ad50
cmp dword [ebp - 0x1624], 2
jb 0x41ae3a
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.0040c670
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 0x41aeb1
jmp 0x41ae47
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.0040c670
add esp, 0x18
test eax, eax
js 0x41aef4
push ebx
lea eax, [ebp - 0x1620]
push 0x1004
push eax
call fcn.00420630
add esp, 0xc
test esi, esi
je 0x41aead
test eax, eax
js 0x41aef4
push esi
lea eax, [ebp - 0x1620]
push 0x1004
push eax
call fcn.004206c0
add esp, 0xc
test eax, eax
js 0x41aef4
lea eax, [ebp - 0x1620]
push eax
call fcn.004205a0
add esp, 4
test al, al
je 0x41aeef
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x1620]
push dword [ebp - 0x164c]
push eax
call fcn.0040e550
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401320
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.00401320
mov esp, ebp
pop ebp
ret