Function at 0x405520
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43d25b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [0x45c464]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x128]
xor ebx, ebx
mov dword [esp + 0x120], ebx
mov esi, 0x45e508
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x405583
cmp cl, bl
je 0x40557f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x405583
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40555f
xor eax, eax
jmp 0x405588
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40577c
push ebp
lea ecx, [esp + 0x14]
call fcn.004357a3
lea ecx, [esp + 0x10]
call fcn.00435a54
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x14]
push eax
push 0x104
mov byte [esp + 0x1c], bl
call esi
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00435a07
cmp eax, 0xffffffff
jne 0x405654
push 0x25
lea ecx, [esp + 0x14]
call fcn.00435a07
cmp eax, 0xffffffff
jne 0x405654
or ecx, eax
mov edi, 0x44be3c
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x405777
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], bl
push ecx
push 0x104
call esi
mov edi, 0x44be3c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str._currentdir__
lea ecx, [esp + 0x18]
call fcn.00430a98
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov byte [esp + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x44be3c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str._systemroot__
lea ecx, [esp + 0x18]
call fcn.00430a98
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov byte [esp + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x44be3c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
push eax
push str._system32__
lea ecx, [esp + 0x18]
call fcn.00430a98
push 0x104
lea ecx, [esp + 0x14]
call fcn.00435970
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.0043561a
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret