Function at 0x47f770
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2798
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50cc94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, esp
mov dword [ebp - 0x14], esp
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push SysReAllocStringLen
push str.VirtRegSaveWorkKey:_MyRegSaveKeyEx_hRootKey_.8x__KeyName_s__TargetFile_s__ExportDllName_s_
push eax
call fcn.00468c80
add esp, 0x18
call fcn.0047d7b0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
add esp, 4
test eax, eax
jne 0x47f850
lea eax, [ecx - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47f7f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f81a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x47f839
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov esi, esp
mov dword [ebp - 0x14], esp
push str.VirtReg.dat
call fcn.004b2d4e
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._x._x._x._s
push esi
call fcn.00468c80
lea ecx, [ebp - 0x10]
add esp, 0x18
push ecx
call fcn.00468380
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
add esp, 4
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
mov dword [esi], eax
mov ebx, 5
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 3
call fcn.0047ed30
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
mov esi, eax
call edi
push ecx
mov ecx, dword [ebp + 8]
mov edx, esp
mov dword [ebp - 0x1c], esp
push eax
mov eax, dword [ebp - 0x10]
push esi
push eax
push ecx
push str.VirtRegSaveWorkKey:_MyRegSaveKeyEx__s___s__returned__d__LE_d
push edx
call fcn.00468c80
add esp, 0x18
call fcn.0047d7b0
mov eax, dword [ebp - 0x10]
add esp, 4
add eax, 0xfffffff0
test esi, esi
je 0x47f9e3
push ecx
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0046cc40
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47f969
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f98b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f9ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x47f9cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x11
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 7
push SysReAllocStringLen
push ecx
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0047ebe0
add esp, 0xc
test eax, eax
jne 0x47fad0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.VirtRegSaveWorkKey:_timed_out_waiting_for_file_to_become_available
push ecx
call fcn.00468c80
add esp, 8
call fcn.0047d7b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47fa4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fa71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fa93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x47fab2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0046cc40
mov esi, eax
add esp, 4
test esi, esi
jne 0x47fb0a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
dec ebx
test ecx, ecx
jg 0x47fad0
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.00470f80
add esp, 8
mov esi, eax
mov byte [ebp - 4], 6
call edi
mov edx, dword [esi]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push str.VirtRegSaveWorkKey:_KillFile__s__s__LE_d
push ecx
call fcn.00468c80
add esp, 0x14
call fcn.0047d7b0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fb68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, eax
call edi
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov eax, dword [ebp - 0x10]
test esi, esi
jne 0x47fbdc
push edx
push eax
push str._VirtRegSaveWorkKey:_MoveFile__s___s___failed__LE_d
push ecx
call fcn.00468c80
add esp, 0x14
call fcn.0047d7b0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0046cc40
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x47fa43
push esi
push edx
push eax
push str.VirtRegSaveWorkKey:_MoveFile__s___s__d__LE_d
push ecx
call fcn.00468c80
add esp, 0x18
call fcn.0047d7b0
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.VirtRegSaveWorkKey:_MyRegSaveKeyEx_success
push ecx
call fcn.00468c80
add esp, 8
call fcn.0047d7b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47fc2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fc51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fc73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x47fc92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret