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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582731
mov eax, dword fs:[0]
push eax
sub esp, 0x8b0
mov eax, dword [0x60b044]
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.0042bf30
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 0x5fe55c
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call fcn.004031f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x870]
push 2
xor eax, eax
mov dword [ebp - 0x85c], 7
push 0x5fe578
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
call fcn.004031f0
push 2
push 0x5fe580
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 1
call fcn.00408230
push 2
push 0x5fe578
lea ecx, [ebp - 0x870]
call fcn.00408230
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.00402ca0
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 0x4050d0
lea edx, [ebp - 0x38]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4050e6
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 0x405100
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 0x40544a
lea ecx, [ebp - 0x8bc]
mov dword [ebp - 0x890], eax
call fcn.00425b95
push 0x10000000
push str.Everyone
lea ecx, [ebp - 0x8bc]
mov byte [ebp - 4], 2
call fcn.00425bef
push 0x10000000
push str.ALL_APPLICATION_PACKAGES
lea ecx, [ebp - 0x8bc]
call fcn.00425bef
lea eax, [ebp - 0x650]
push eax
push 0x5afc
push 0
push 4
lea ecx, [ebp - 0x8bc]
call fcn.00426005
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40543b
push 0x208
push eax
lea eax, [ebp - 0x858]
push eax
call fcn.0042bf30
push 0x208
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.0042bf30
push 0x208
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.0042bf30
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.00402ca0
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 0x405240
lea ecx, [ebp - 0x240]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x405260
mov eax, dword [str.TEMP__]
lea edx, [ebp - 0x38]
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x5fe614]
mov dword [ecx + 4], eax
mov eax, dword [0x5fe618]
mov dword [ecx + 8], eax
mov ax, word [0x5fe61c]
mov word [ecx + 0xc], ax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x405292
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 0x4052b0
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 0x40543b
lea eax, [ebp - 0x240]
push eax
push 1
push 6
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40543b
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 0x405484
lea eax, [ebp - 0x240]
push eax
push 0x5afc
push 0
push 4
lea ecx, [ebp - 0x8bc]
call fcn.00426005
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x405434
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.00402ca0
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 0x405484
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.00402ca0
add esp, 0x14
lea eax, [ebp - 0x240]
lea ecx, [ebp - 0x8bc]
push eax
push 0x5afc
push 0
push 4
call fcn.00426005
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x405484
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.00425bde
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4054a1
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 0x405491
cmp dword [ebp - 0x890], 0
mov dword [esi + 0x28], eax
jne 0x40547d
mov ecx, eax
call fcn.00403500
mov esi, 1
jmp 0x4054c0
lea ecx, [ebp - 0x8bc]
call fcn.00425bde
jmp 0x4054be
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
push 0x5afc
call fcn.0041aff4
add esp, 4
mov dword [ebp - 0x890], eax
mov ecx, eax
mov dword [esi + 0x28], eax
call fcn.00403500
xor esi, esi
mov eax, dword [ebp - 0x85c]
cmp eax, 8
jb 0x4054de
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00403400
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 0x405519
inc ecx
push ecx
push dword [ebp - 0x888]
lea ecx, [ebp - 0x888]
call fcn.00403400
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.0041afe3
mov esp, ebp
pop ebp
ret