Function at 0x452380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x4e1fe8], 0
jne 0x4525bc
mov esi, dword [0x4e1fd4]
test esi, esi
je 0x4523c1
test byte [0x4d51dc], 1
jne 0x45249f
jmp 0x4525bc
push 0xc
call fcn.0048ae0c
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.0048ea80
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
mov ecx, esi
push edi
call fcn.00412be0
movzx eax, byte [esi + 0xb]
mov edx, eax
mov ecx, esi
test al, al
js 0x452422
test edx, edx
jne 0x45242b
jmp 0x45247e
mov ecx, dword [esi]
mov edx, dword [esi + 4]
test edx, edx
je 0x45247e
add edx, edx
nop dword [eax]
test edx, edx
je 0x45247e
lea edi, [edx - 2]
cmp word [ecx + edx - 2], 0x5c
mov edx, edi
jne 0x452430
cmp edi, 0xfffffffe
je 0x45247e
mov ecx, edi
sar ecx, 1
lea edx, [ecx + 1]
test al, al
js 0x452469
cmp ecx, eax
jae 0x45261c
cmp edi, 8
jae 0x45260b
mov byte [esi + 0xb], dl
mov eax, esi
jmp 0x452477
cmp dword [esi + 4], ecx
jbe 0x45261c
mov eax, dword [esi]
mov dword [esi + 4], edx
mov word [eax + ecx*2 + 2], 0
mov ecx, esi
push 9
push str.debug.log
call fcn.00433050
mov dword [0x4e1fd4], esi
test byte [0x4d51dc], 1
je 0x4525bc
cmp byte [esi + 0xb], 0
jns 0x4524a7
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x4c4d60]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4e1fe8], eax
inc eax
cmp eax, 1
ja 0x4525bc
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.0048ea80
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
jb 0x4525ba
mov ecx, dword [0x4e1fd4]
push esi
call fcn.00432eac
mov ecx, dword [0x4e1fd4]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x4525d3
test eax, eax
je 0x4525ed
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x452564
push 1
push 0x4c248e
call fcn.00433050
mov ecx, dword [0x4e1fd4]
push 9
push str.debug.log
call fcn.00433050
mov eax, dword [0x4e1fd4]
cmp byte [eax + 0xb], 0
jns 0x45257d
mov eax, dword [eax]
movaps xmm0, xmmword [0x4c4d60]
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 [0x4e1fe8], eax
inc eax
cmp eax, 1
ja 0x4525bc
mov dword [0x4e1fe8], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ecx + 4]
test eax, eax
je 0x4525ed
mov edx, dword [ecx]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x452552
jmp 0x452564
push str.string::back__:_string_is_empty
push str._empty__
push 0x501
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.00414c6c
push str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
push str.__s_____min_cap
push 0x6c6
jmp 0x4525fc
mov ecx, esi
call fcn.004144e6
int3