Function at 0x4053d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
mov ebx, dword [esp + 0x418]
push ebp
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x428]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x405441
mov edx, dword [0x455fa8]
lea ecx, [esp + 0x114]
push 0x104
push ecx
push edx
call fcn.00405370
add esp, 0xc
test eax, eax
je 0x4056a0
lea eax, [esp + 0x114]
mov dword [esp + 0x428], eax
mov edi, dword [esp + 0x428]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jae 0x405489
mov edx, dword [0x455fa8]
lea ecx, [esp + 0x114]
push 0x104
push ecx
push edx
call fcn.00405370
add esp, 0xc
test eax, eax
je 0x4056a0
lea eax, [esp + 0x114]
mov dword [esp + 0x428], eax
mov ebp, dword [esp + 0x42c]
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test ebp, ebp
jne 0x4054b8
lea ecx, [esp + 0x218]
push 0x104
push ecx
call esi
test eax, eax
je 0x4056a0
lea ebp, [esp + 0x218]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jae 0x4054e7
lea edx, [esp + 0x218]
push 0x104
push edx
call esi
test eax, eax
je 0x4056a0
lea ebp, [esp + 0x218]
mov esi, dword [esp + 0x430]
test esi, esi
jne 0x405514
lea eax, [esp + 0x31c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4056a0
lea esi, [esp + 0x31c]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jae 0x405547
lea ecx, [esp + 0x31c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4056a0
lea esi, [esp + 0x31c]
push ebx
call fcn.00430315
push str._APPPATH_
push ebx
call fcn.0041c2d0
add esp, 0xc
cmp eax, ebx
jne 0x4055b5
mov edi, dword [esp + 0x428]
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, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x19]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
push str._WIN_
push ebx
call fcn.0041c2d0
add esp, 8
cmp eax, ebx
jne 0x40561a
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x15]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
push str._WINSYS_
push ebx
call fcn.0041c2d0
add esp, 8
cmp eax, ebx
jne 0x40567f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret