Function at 0x456550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b9f26
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x76a02c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movaps xmm0, xmmword [0x74bad0]
xor ebx, ebx
movups xmmword [ebp - 0x300], xmm0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
movaps xmm0, xmmword [0x74bb40]
movups xmmword [ebp - 0x2f0], xmm0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movaps xmm0, xmmword [0x74bb60]
movups xmmword [ebp - 0x2e0], xmm0
mov dword [ebp - 0x220], 0x24
movaps xmm0, xmmword [0x74bb20]
movups xmmword [ebp - 0x2d0], xmm0
movaps xmm0, xmmword [0x74bb70]
movups xmmword [ebp - 0x2c0], xmm0
movaps xmm0, xmmword [0x74ba90]
movups xmmword [ebp - 0x2b0], xmm0
movaps xmm0, xmmword [0x74bb00]
movups xmmword [ebp - 0x2a0], xmm0
movaps xmm0, xmmword [0x74bb30]
movups xmmword [ebp - 0x290], xmm0
movaps xmm0, xmmword [0x74baf0]
movups xmmword [ebp - 0x280], xmm0
movaps xmm0, xmmword [0x74bab0]
movups xmmword [ebp - 0x270], xmm0
movaps xmm0, xmmword [0x74bb50]
movups xmmword [ebp - 0x260], xmm0
movaps xmm0, xmmword [0x74bac0]
movups xmmword [ebp - 0x250], xmm0
movaps xmm0, xmmword [0x74bae0]
movups xmmword [ebp - 0x240], xmm0
movaps xmm0, xmmword [0x74bb10]
movups xmmword [ebp - 0x230], xmm0
nop word [eax + eax]
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00530310
mov eax, dword [0x77cef0]
add esp, 0xc
mov dword [ebp - 0x30c], 0
test eax, eax
jne 0x4566a1
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call edi
push eax
call esi
mov dword [0x77cef0], eax
test eax, eax
je 0x4566b6
lea ecx, [ebp - 0x308]
push ecx
call eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x30c], eax
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push dword [ebp + ebx*4 - 0x300]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4567c4
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x456834
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456707
sub eax, edx
lea ecx, [ebp - 0x304]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00429270
mov esi, dword [ebp - 0x304]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x45683e
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x45675d
push edi
lea ecx, [ebp - 0x304]
call fcn.0041f730
mov esi, dword [ebp - 0x304]
lea eax, [edi + 1]
push eax
push esi
call fcn.005343c5
add esp, 8
cmp edi, dword [esi - 8]
jg 0x45683e
push dword [ebp - 0x304]
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea eax, [ebp - 0x304]
push eax
push ecx
lea eax, [ebp - 0x314]
push eax
call fcn.0045bb80
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x304]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4567b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x30c], 0
je 0x456807
mov eax, dword [0x77ceec]
test eax, eax
jne 0x4567f5
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call edi
push eax
call esi
mov dword [0x77ceec], eax
test eax, eax
je 0x456807
push dword [ebp - 0x308]
call eax
mov dword [ebp - 0x30c], 0
inc ebx
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0x39
jb 0x456660
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00468d3e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004222a0
push 0x80070057
call fcn.004222a0
int3