Function at 0x4054d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462e32
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4790c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x228], edi
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
mov dword [ebp - 0x224], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405748
mov edx, dword [edi + 0x14]
cmp eax, edx
ja 0x4055a4
mov dword [ebp - 0x220], edi
mov ecx, edi
cmp edx, 7
jbe 0x40557f
mov ecx, dword [edi]
mov dword [ebp - 0x220], ecx
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
lea eax, [ebp - 0x21c]
push eax
push ecx
call fcn.0043dba0
mov eax, dword [ebp - 0x220]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x4055b9
lea ecx, [ebp - 0x21c]
push ecx
push dword [ebp - 0x228]
mov ecx, edi
push eax
call fcn.00405df0
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
push 0x20
movups xmmword [ebp - 0x240], xmm0
mov dword [ebp - 0x22c], 7
call fcn.0043c326
movups xmm0, xmmword [0x474208]
mov dword [ebp - 0x240], eax
xor ecx, ecx
mov dword [ebp - 0x230], 0xc
add esp, 4
mov dword [ebp - 0x22c], 0xf
movups xmmword [eax], xmm0
movq xmm0, qword [0x474218]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], cx
push 4
sub esp, 0xc
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.00405c50
push eax
mov edx, edi
lea ecx, [ebp - 0x258]
call fcn.004061f0
mov esi, eax
add esp, 4
cmp edi, esi
je 0x4056af
mov ecx, dword [edi + 0x14]
cmp ecx, 7
jbe 0x40567f
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x405675
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405765
mov eax, edx
push ecx
push eax
call fcn.0043c35b
add esp, 8
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x244]
cmp ecx, 7
jbe 0x4056ef
mov edx, dword [ebp - 0x258]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4056e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405765
push ecx
push edx
call fcn.0043c35b
add esp, 8
mov ecx, dword [ebp - 0x22c]
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
cmp ecx, 7
jbe 0x405748
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40573e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405765
push ecx
push edx
call fcn.0043c35b
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c313
mov esp, ebp
pop ebp
ret
call fcn.0044166a
int3