Function at 0x4053c0
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583861
mov eax, dword fs:[0]
push eax
sub esp, 0x8b0
mov eax, dword [0x60c044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88c], ecx
push 0x208
lea eax, [ebp - 0x650]
mov dword [ecx + 0x14], 0
push 0
push eax
mov dword [ebp - 0x890], 1
call fcn.0042cfe0
add esp, 0xc
mov dword [ebp - 0x874], 7
xorps xmm0, xmm0
mov dword [ebp - 0x878], 0
xor eax, eax
movq qword [ebp - 0x18], xmm0
lea ecx, [ebp - 0x888]
mov word [ebp - 0x888], ax
push 0xc
push 0x5ff70c
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call fcn.00403620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x870]
push 2
xor eax, eax
mov dword [ebp - 0x85c], 7
push 0x5ff728
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
call fcn.00403620
push 2
push 0x5ff730
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 1
call fcn.00408660
push 2
push 0x5ff728
lea ecx, [ebp - 0x870]
call fcn.00408660
cmp dword [ebp - 0x874], 8
lea eax, [ebp - 0x888]
push 0xd0
cmovae eax, dword [ebp - 0x888]
push eax
lea eax, [ebp - 0x38]
push str._s_d
push eax
call fcn.004030d0
add esp, 0x10
lea ecx, [ebp - 0x870]
cmp dword [ebp - 0x85c], 8
lea edx, [ebp - 0x650]
cmovae ecx, dword [ebp - 0x870]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x405500
lea edx, [ebp - 0x38]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x405516
lea edi, [ebp - 0x650]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405530
mov ecx, edx
lea eax, [ebp - 0x650]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, dword [ebp - 0x88c]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40587a
lea ecx, [ebp - 0x8bc]
mov dword [ebp - 0x890], eax
call fcn.00426c08
push 0x10000000
push str.Everyone
lea ecx, [ebp - 0x8bc]
mov byte [ebp - 4], 2
call fcn.00426c62
push 0x10000000
push str.ALL_APPLICATION_PACKAGES
lea ecx, [ebp - 0x8bc]
call fcn.00426c62
lea eax, [ebp - 0x650]
push eax
push 0x5afc
push 0
push 4
lea ecx, [ebp - 0x8bc]
call fcn.00427078
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40586b
push 0x208
push eax
lea eax, [ebp - 0x858]
push eax
call fcn.0042cfe0
push 0x208
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.0042cfe0
push 0x208
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.0042cfe0
add esp, 0x24
lea eax, [ebp - 0x858]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x38]
push eax
push str.WanNengWB
push str.WanNengWBInput
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x448]
push str._s_s_s_s
push eax
call fcn.004030d0
add esp, 0x18
lea ecx, [ebp - 0x870]
cmp dword [ebp - 0x85c], 8
lea edx, [ebp - 0x240]
cmovae ecx, dword [ebp - 0x870]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x405670
lea ecx, [ebp - 0x240]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x405690
mov eax, dword [str.TEMP__]
lea edx, [ebp - 0x38]
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x5ff7c4]
mov dword [ecx + 4], eax
mov eax, dword [0x5ff7c8]
mov dword [ecx + 8], eax
mov ax, word [0x5ff7cc]
mov word [ecx + 0xc], ax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4056c2
lea edi, [ebp - 0x240]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4056e0
mov ecx, edx
lea eax, [ebp - 0x240]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x88c]
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push eax
push 1
push 0xf001f
mov dword [esi + 0x14], 1
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40586b
lea eax, [ebp - 0x240]
push eax
push 1
push 6
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40586b
push eax
push 0x80
push 4
push eax
push 3
push 0x10000000
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4058b4
lea eax, [ebp - 0x240]
push eax
push 0x5afc
push 0
push 4
lea ecx, [ebp - 0x8bc]
call fcn.00427078
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x405864
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov dword [ebp - 0x88c], eax
lea eax, [ebp - 0x38]
push eax
push str.WanNengWB
push str.WanNengWBInput
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x448]
push str._s_s_s_s_d
push eax
call fcn.004030d0
add esp, 0x1c
lea eax, [ebp - 0x448]
push 0
push 0x80
push 4
push 0
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4058b4
push dword [ebp - 0x88c]
cmp dword [ebp - 0x85c], 8
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x870]
cmovae ecx, dword [ebp - 0x870]
lea eax, [ebp - 0x240]
push ecx
push str._s_s_d
push eax
call fcn.004030d0
add esp, 0x14
lea eax, [ebp - 0x240]
lea ecx, [ebp - 0x8bc]
push eax
push 0x5afc
push 0
push 4
call fcn.00427078
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4058b4
push 5
push 0
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x8bc]
mov byte [ebp - 4], 1
call fcn.00426c51
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4058d1
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x10], eax
test eax, eax
je 0x4058c1
cmp dword [ebp - 0x890], 0
mov dword [esi + 0x28], eax
jne 0x4058ad
mov ecx, eax
call fcn.00403930
mov esi, 1
jmp 0x4058f0
lea ecx, [ebp - 0x8bc]
call fcn.00426c51
jmp 0x4058ee
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
push 0x5afc
call fcn.0041b472
add esp, 4
mov dword [ebp - 0x890], eax
mov ecx, eax
mov dword [esi + 0x28], eax
call fcn.00403930
xor esi, esi
mov eax, dword [ebp - 0x85c]
cmp eax, 8
jb 0x40590e
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00403830
mov ecx, dword [ebp - 0x874]
xor eax, eax
mov dword [ebp - 0x85c], 7
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
cmp ecx, 8
jb 0x405949
inc ecx
push ecx
push dword [ebp - 0x888]
lea ecx, [ebp - 0x888]
call fcn.00403830
mov eax, esi
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.0041b461
mov esp, ebp
pop ebp
ret