Function at 0x4043d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x318
push ebx
push ebp
push esi
push edi
call fcn.00404e80
mov dword [0x410e38], eax
call fcn.00404e80
mov dword [0x410e3c], eax
lea eax, [esp + 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x40e080
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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
push eax
and ecx, 3
lea eax, [esp + 0x228]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x410e3c]
push eax
push ecx
call fcn.00404f30
mov edi, str.PKPKSettings.prs
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x230]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40e038
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 eax, [esp + 0x234]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040598d
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x40449f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
push 0x40e420
push ebp
call fcn.00405fb3
push 5
lea edx, [esp + 0x20]
push str._Fol_
push edx
call fcn.00405eef
add esp, 0x18
test eax, eax
jne 0x4044ce
mov esi, 1
test byte [ebp + 0xc], 0x10
jne 0x404715
test esi, esi
je 0x4044a1
xor ebx, ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
lea esi, [esp + 0x10]
rep stosd dword es:[edi], eax
or edi, 0xffffffff
dec esi
inc edi
push ebp
inc esi
push 1
push 1
push esi
call fcn.00405833
mov al, byte [ebp + 0xc]
add esp, 0x10
test al, 0x10
jne 0x40450f
cmp byte [esi], 0xa
jne 0x4044f3
mov cl, byte [esp + edi + 0x10]
lea eax, [esp + edi + 0x10]
cmp cl, 0xa
jne 0x40451f
mov byte [eax], 0
push 4
lea eax, [esp + 0x14]
push str.:End
push eax
call fcn.00405eef
add esp, 0xc
test eax, eax
jne 0x404541
mov ebx, 1
jmp 0x4045e8
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x117], 0x5c
je 0x4045cd
mov edi, 0x40e080
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x410e3c]
push 0
lea eax, [esp + 0x11c]
push 0
push eax
push ecx
call fcn.00404f30
add esp, 0x10
test byte [ebp + 0xc], 0x10
jne 0x404715
test ebx, ebx
je 0x4044de
xor ebx, ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
lea esi, [esp + 0x10]
rep stosd dword es:[edi], eax
or edi, 0xffffffff
dec esi
inc edi
push ebp
inc esi
push 1
push 1
push esi
call fcn.00405833
mov al, byte [ebp + 0xc]
add esp, 0x10
test al, 0x10
jne 0x40462d
cmp byte [esi], 0xa
jne 0x404611
mov cl, byte [esp + edi + 0x10]
lea eax, [esp + edi + 0x10]
cmp cl, 0xa
jne 0x40463d
mov byte [eax], 0
push 4
lea edx, [esp + 0x14]
push str.:End
push edx
call fcn.00405eef
add esp, 0xc
test eax, eax
jne 0x40465f
mov ebx, 1
jmp 0x404706
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x117], 0x5c
je 0x4046eb
mov edi, 0x40e080
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x410e38]
push 0
lea eax, [esp + 0x11c]
push 0
push eax
push ecx
call fcn.00404f30
add esp, 0x10
test byte [ebp + 0xc], 0x10
jne 0x404715
test ebx, ebx
jne 0x40472b
jmp 0x4045fc
push ebp
call fcn.00405500
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
push ebp
call fcn.00405500
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret