Function at 0x46a8d0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ef725
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x70f200]
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
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.005dc5e0
sub esp, 8
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea esi, [edi + 0x15c]
movq qword [ebp - 0x1c], xmm0
mov ecx, esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.WAU_Manager.exe
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc520
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x40]
movq qword [ebp - 0x40], xmm0
call fcn.005dc5e0
sub esp, 8
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea ecx, [edi + 0x150]
movq qword [ebp - 0x34], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.WAU_Manager.exe
call fcn.005dc190
push eax
lea ecx, [ebp - 0x34]
call fcn.005dc520
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.005dc190
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x46a9ed
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005dc190
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.005dc190
mov edx, esi
mov ecx, eax
call fcn.005e70b0
test eax, eax
jle 0x46aa33
lea esi, [edi + 0x15c]
lea ecx, [ebp - 0x34]
call fcn.005dc190
push eax
call ebx
test eax, eax
je 0x46ab67
mov ecx, esi
call fcn.005dc190
or edx, 0xffffffff
mov ecx, eax
call fcn.005e0f30
push 0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x34]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x46ab67
cmp byte [ebp + 0x14], 0
mov esi, dword [ebp + 8]
je 0x46aa45
mov dword [ebp - 0x44], str.___updateapps
jmp 0x46aa50
test esi, esi
je 0x46aab5
mov dword [ebp - 0x44], str.___update
lea ecx, [ebp - 0x1c]
lea ebx, [ebp - 0x28]
call fcn.005dc190
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x44]
mov ecx, ebx
push eax
push 0x624388
call fcn.005dc200
test esi, esi
je 0x46aac1
push esi
lea ecx, [ebp - 0x40]
call fcn.005db290
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.005dc190
push eax
push str.__flag
mov ecx, ebx
call fcn.005da780
jmp 0x46aac1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
call fcn.005dc4e0
push 5
lea ecx, [edi + 0x150]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
lea ecx, [edi + 0x1290]
call fcn.005793c0
mov esi, eax
mov eax, 0xffffffff
test esi, esi
cmove esi, eax
mov dword [ebp - 0x44], esi
cmp byte [ebp + 0xc], 0
mov byte [ebp - 4], 4
je 0x46ab0f
push 0
push esi
mov ecx, edi
call fcn.0043a9f0
test al, al
jne 0x46ab0f
or edi, 0xffffffff
jmp 0x46ab55
cmp esi, 0xffffffff
je 0x46ab31
test esi, esi
je 0x46ab31
push 0
push 0
push 0
push str.WAU_manager_was_successfully_launched.
mov ecx, edi
call fcn.0045a700
mov edi, 1
jmp 0x46ab55
push 0
push 0
push 0
push str.Failed_to_launch_WAU_Manager.
mov ecx, edi
call fcn.0045a700
cmp esi, 0xffffffff
je 0x46ab53
test esi, esi
je 0x46ab53
mov edi, 1
jmp 0x46ab55
xor edi, edi
cmp esi, 0xffffffff
je 0x46ab69
test esi, esi
je 0x46ab69
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46ab69
xor edi, edi
lea ecx, [ebp - 0x34]
call fcn.005dc430
lea ecx, [ebp - 0x40]
call fcn.005dc430
lea ecx, [ebp - 0x1c]
call fcn.005dc430
lea ecx, [ebp - 0x28]
call fcn.005dc430
mov eax, edi
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.0041e1b5
mov esp, ebp
pop ebp
ret 0x10