Function at 0x456a60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x558595
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
mov eax, dword [0x599508]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x328], 1
stosb byte es:[edi], al
call fcn.00468310
test eax, eax
je 0x456b9e
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x21c]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x456b83
lea edx, [esp + 0x14]
test edx, edx
je 0x456b7c
lea eax, [esp + 0x21c]
test eax, eax
je 0x456b7c
mov eax, dword [esp + 0x334]
mov esi, 0x7a
cmp eax, ebx
je 0x456b39
lea ecx, [esp + 0x21c]
push eax
push ecx
push 0x591ecc
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.004b7563
add esp, 0x14
xor esi, esi
jmp 0x456b8b
lea edi, [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x456b8b
lea edi, [esp + 0x21c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
jmp 0x456b8b
mov esi, 0x57
jmp 0x456b8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
mov dword [0x5b29a4], esi
je 0x456c9b
jmp 0x456c94
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x118]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x456c82
push 0x103
lea edx, [esp + 0x11c]
push 0x59e7b0
push edx
call fcn.004b75c0
lea eax, [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x456c7b
lea ecx, [esp + 0x118]
test ecx, ecx
je 0x456c7b
mov eax, dword [esp + 0x334]
mov esi, 0x7a
cmp eax, ebx
je 0x456c38
lea edx, [esp + 0x118]
push eax
push edx
push 0x591ecc
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.004b7563
add esp, 0x14
xor esi, esi
jmp 0x456c8a
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x456c8a
lea edi, [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
jmp 0x456c8a
mov esi, 0x57
jmp 0x456c8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
mov dword [0x5b29a4], esi
je 0x456c9b
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp esi, ebx
sete al
cmp eax, ebx
je 0x456cb4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.0052ab6b
mov esi, dword [esp + 0x330]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0052a757
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x328], bl
call fcn.0052a9e2
mov ecx, dword [esp + 0x320]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x320
ret