Function at 0x442e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x541af4], 0
jne 0x443073
mov eax, dword [0x541ae0]
test eax, eax
je 0x442eff
test byte [0x53db20], 1
je 0x443073
cmp byte [eax + 0xb], 0
jns 0x442e57
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x524a30]
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 [0x541af4], eax
inc eax
cmp eax, 1
ja 0x443073
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.004ec250
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 0x443071
mov ecx, dword [0x541ae0]
push esi
call fcn.0043b08e
mov ecx, dword [0x541ae0]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x442fc6
test eax, eax
je 0x44308a
mov edx, ecx
jmp 0x442fd3
push 0xc
call fcn.004e8c26
add esp, 4
mov edi, eax
lea esi, [ebp - 0x218]
push 0x208
push 0xff
push esi
call fcn.004ec250
add esp, 0xc
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
mov ecx, edi
push esi
call fcn.00414f88
movzx ecx, byte [edi + 0xb]
test cl, cl
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ebx, ecx
cmovs ebx, eax
mov esi, edi
mov dword [ebp - 0x21c], edx
cmovs esi, edx
test ebx, ebx
je 0x443059
add ebx, ebx
nop word cs:[eax + eax]
test ebx, ebx
je 0x443059
lea edx, [ebx - 2]
cmp word [esi + ebx - 2], 0x5c
mov ebx, edx
jne 0x442f80
cmp edx, 0xfffffffe
je 0x443059
sar edx, 1
lea ebx, [edx + 1]
test cl, cl
js 0x443045
cmp ebx, ecx
ja 0x4430b9
cmp ebx, 5
jae 0x44309b
mov byte [edi + 0xb], bl
mov eax, edi
jmp 0x443052
mov eax, dword [ecx + 4]
test eax, eax
je 0x44308a
mov edx, dword [ecx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x442fed
push 1
push 0x524a94
call fcn.0043b230
mov ecx, dword [0x541ae0]
push 9
push 0x524a98
call fcn.0043b230
mov eax, dword [0x541ae0]
cmp byte [eax + 0xb], 0
jns 0x443006
mov eax, dword [eax]
movaps xmm0, xmmword [0x524a30]
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 [0x541af4], eax
inc eax
cmp eax, 1
ja 0x443073
mov dword [0x541af4], 0
jmp 0x443071
cmp eax, ebx
jb 0x4430b9
mov dword [edi + 4], ebx
mov eax, dword [ebp - 0x21c]
mov word [eax + edx*2 + 2], 0
mov ecx, edi
push 9
push 0x524a98
call fcn.0043b230
mov dword [0x541ae0], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
push str.string::back__:_string_is_empty
push str._empty__
push 0x4c8
jmp 0x4430aa
push str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
push str.__s_____min_cap
push 0x6cf
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.0041a308
call fcn.004fada0
int3