Function at 0x45cd40
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_GetSystemDirectoryW]
mov esi, eax
test esi, esi
je 0x45ce11
nop
mov ecx, dword [ebp - 0x38]
mov eax, ecx
shr eax, 1
cmp esi, eax
jb 0x45ce62
add esi, esi
cmp esi, ecx
jbe 0x45cdfe
push esi
call fcn.0050a489
mov ecx, dword [ebp - 0x40]
add esp, 4
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x45cdf4
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 0x45ce01
mov eax, dword [ebp - 0x3c]
shr ecx, 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test esi, esi
jne 0x45cdc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x45ce42
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
mov eax, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x244], eax
movups xmmword [ebp - 0x2c], xmm0
cmp esi, 0x7ffffffe
ja 0x45cf8e
cmp esi, 8
jae 0x45cea9
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 0x45cf5b
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x45cebc
mov eax, SysReAllocString
jmp 0x45cec6
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 0x45cf89
add ecx, ecx
cmp ecx, 0x1000
jb 0x45cf15
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x45cf89
push eax
call fcn.0050a489
add esp, 4
test eax, eax
je 0x45cf93
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x45cf28
test ecx, ecx
je 0x45cf26
push ecx
call fcn.0050a489
add esp, 4
mov ecx, eax
jmp 0x45cf28
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 0x45ce32
call fcn.00417c60
call fcn.00417d10
call fcn.00522dda
int3