Function at 0x441480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x4a6010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x4ac5b8], 0
jne 0x4416d7
mov ebx, dword [0x4ac5a4]
test ebx, ebx
je 0x4414c1
test byte [0x4a8b90], 1
jne 0x4415b4
jmp 0x4416d5
push 0xc
call fcn.004633c6
add esp, 4
mov ebx, eax
lea esi, [ebp - 0x218]
push 0x208
push 0xff
push esi
call fcn.00467280
add esp, 0xc
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 8], 0xffffffff
mov ecx, ebx
push esi
call fcn.004129d0
movzx ecx, byte [ebx + 0xb]
test cl, cl
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov edi, ecx
cmovs edi, edx
mov esi, ebx
mov dword [ebp - 0x21c], eax
cmovs esi, eax
test edi, edi
je 0x441593
add edi, edi
nop word cs:[eax + eax]
test edi, edi
je 0x441593
lea eax, [edi - 2]
cmp word [esi + edi - 2], 0x5c
mov edi, eax
jne 0x441540
cmp eax, 0xfffffffe
je 0x441593
mov esi, eax
sar esi, 1
lea edi, [esi + 1]
test cl, cl
js 0x44157b
cmp esi, ecx
jae 0x441737
cmp eax, 8
jae 0x441726
mov eax, edi
mov byte [ebx + 0xb], al
mov eax, ebx
jmp 0x44158c
cmp edx, esi
jbe 0x441737
mov dword [ebx + 4], edi
mov eax, dword [ebp - 0x21c]
mov word [eax + esi*2 + 2], 0
mov ecx, ebx
push 9
push str.debug.log
call fcn.00433d90
mov dword [0x4ac5a4], ebx
test byte [0x4a8b90], 1
je 0x4416d5
cmp byte [ebx + 0xb], 0
jns 0x4415bc
mov ebx, dword [ebx]
sub esp, 0x1c
movaps xmm0, xmmword [0x49c7b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4ac5b8], eax
inc eax
cmp eax, 1
ja 0x4416d5
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.00467280
add esp, 0xc
mov word [ebp - 0x218], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
mov bl, 1
jb 0x4416d1
mov ecx, dword [0x4ac5a4]
push esi
call fcn.00433bea
mov ecx, dword [0x4ac5a4]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x4416ee
test eax, eax
je 0x441708
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x44167b
push 1
push 0x498404
call fcn.00433d90
mov ecx, dword [0x4ac5a4]
push 9
push str.debug.log
call fcn.00433d90
mov eax, dword [0x4ac5a4]
cmp byte [eax + 0xb], 0
jns 0x441694
mov eax, dword [eax]
movaps xmm0, xmmword [0x49c7b0]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4ac5b8], eax
inc eax
cmp eax, 1
ja 0x4416d7
mov dword [0x4ac5b8], 0
xor ebx, ebx
jmp 0x4416d7
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464393
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ecx + 4]
test eax, eax
je 0x441708
mov edx, dword [ecx]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x441669
jmp 0x44167b
push str.string::back__:_string_is_empty
push str._empty__
push 0x4d1
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.00416390
push str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
push str.__s_____min_cap
push 0x6d7
jmp 0x441717
call fcn.00474027
int3