Function at 0x45cfa0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556ff0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x244], edi
lea eax, [ebp - 0x240]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x200
push 0x100
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov esi, eax
test esi, esi
je 0x45d1e5
mov ecx, dword [ebp - 0x38]
mov eax, ecx
shr eax, 1
cmp esi, eax
jb 0x45d076
add esi, esi
cmp esi, ecx
jbe 0x45d05d
push esi
call fcn.0050a489
mov ecx, dword [ebp - 0x40]
add esp, 4
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x45d053
push ecx
call fcn.0050a4c0
mov eax, dword [ebp - 0x40]
add esp, 4
mov ecx, esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
jmp 0x45d060
mov eax, dword [ebp - 0x3c]
shr ecx, 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov esi, eax
test esi, esi
je 0x45d1e5
jmp 0x45d023
mov eax, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x244], eax
movups xmmword [ebp - 0x2c], xmm0
cmp esi, 0x7ffffffe
ja 0x45d1f9
cmp esi, 8
jae 0x45d0bd
mov dword [ebp - 0x1c], esi
add esi, esi
push esi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
push eax
call fcn.0050d110
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x2c], ax
jmp 0x45d16f
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x45d0d0
mov eax, SysReAllocString
jmp 0x45d0da
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
xor ecx, ecx
mov dword [ebp - 0x24c], eax
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x7fffffff
ja 0x45d203
add ecx, ecx
cmp ecx, 0x1000
jb 0x45d129
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x45d203
push eax
call fcn.0050a489
add esp, 4
test eax, eax
je 0x45d1fe
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x45d13c
test ecx, ecx
je 0x45d13a
push ecx
call fcn.0050a489
add esp, 4
mov ecx, eax
jmp 0x45d13c
xor ecx, ecx
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x1c], esi
add esi, esi
push esi
push dword [ebp - 0x244]
mov dword [ebp - 0x248], ecx
push ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], eax
call fcn.0050d110
mov eax, dword [ebp - 0x248]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
mov byte [edi + 0x18], 1
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
jmp 0x45d1b5
mov byte [edi + 0x18], 0
mov dword [edi], eax
mov dword [edi + 4], 0x5ffab0
mov dword [edi + 8], 0
mov dword [edi + 8], 0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x45d1c5
push eax
call fcn.0050a4c0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050a47b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x45d19a
mov ecx, edi
call fcn.0045cd40
jmp 0x45d1b5
call fcn.00417d10
call fcn.00522dda
call fcn.00417c60
int3