Function at 0x46caf0
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0xd8
push 0xffffffffffffffff
push 0x4b1df9
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4e3050]
xor eax, ebp
mov dword [ebp + 0xd4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.0046cf40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040e5c0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0xd], al
lea ecx, [ecx - 0x10]
call fcn.004025a0
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
or edi, 0xffffffff
cmp byte [ebp - 0xd], 0
je 0x46cbb0
lea ecx, [ebp - 0x18]
call fcn.0046d040
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
push eax
call fcn.00409090
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46cb94
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x14]
call fcn.0040e5c0
test al, al
jne 0x46cf31
push dword [ebp - 0x18]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], eax
call fcn.0046dc70
add esp, 4
mov byte [ebp - 4], 5
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword fs:[0x2c]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [ecx]
mov ecx, dword [0x4e59f0]
mov dword [ebp - 0x18], eax
cmp ecx, dword [eax + 4]
jle 0x46cc3c
push 0x4e59f0
call fcn.0047d643
add esp, 4
cmp dword [0x4e59f0], 0xffffffff
jne 0x46cc3c
mov byte [ebp - 4], 6
push str.SetSearchPathMode
push esi
call ebx
mov dword [0x4e59f4], eax
mov byte [ebp - 4], 5
push 0x4e59f0
call fcn.0047d5f9
add esp, 4
mov eax, dword [0x4e59f4]
test eax, eax
je 0x46cc4c
push 0x8001
call eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x4e59f8]
cmp eax, dword [ecx + 4]
jle 0x46cc94
push 0x4e59f8
call fcn.0047d643
add esp, 4
cmp dword [0x4e59f8], 0xffffffff
jne 0x46cc94
mov byte [ebp - 4], 7
push str.SetDllDirectory
push esi
call ebx
mov dword [0x4e59fc], eax
mov byte [ebp - 4], 5
push 0x4e59f8
call fcn.0047d5f9
add esp, 4
mov eax, dword [0x4e59fc]
test eax, eax
je 0x46cca4
push 0x4c3098
call eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x4e5a00]
cmp eax, dword [ecx + 4]
jle 0x46ccec
push 0x4e5a00
call fcn.0047d643
add esp, 4
cmp dword [0x4e5a00], 0xffffffff
jne 0x46ccec
mov byte [ebp - 4], 8
push str.SetDefaultDllDirectories
push esi
call ebx
mov dword [0x4e5a04], eax
mov byte [ebp - 4], 5
push 0x4e5a00
call fcn.0047d5f9
add esp, 4
mov eax, dword [0x4e5a04]
test eax, eax
je 0x46ccfc
push 0x800
call eax
mov dword [ebp], str.psapi.dll
lea esi, [ebp]
mov dword [ebp + 4], str.WindowsCodecs.dll
mov dword [ebp + 8], str.bcrypt.dll
mov dword [ebp + 0xc], str.msi.dll
mov dword [ebp + 0x10], str.USP10.dll
mov dword [ebp + 0x14], str.msls31.dll
mov dword [ebp + 0x18], str.version.dll
mov dword [ebp + 0x1c], str.mpr.dll
mov dword [ebp + 0x20], str.uxtheme.dll
mov dword [ebp + 0x24], str.profapi.dll
mov dword [ebp + 0x28], str.gdiplus.dll
mov dword [ebp + 0x2c], str.userenv.dll
mov dword [ebp + 0x30], str.dwmapi.dll
mov dword [ebp + 0x34], str.davhlpr.dll
mov dword [ebp + 0x38], 0x4c9184
mov dword [ebp + 0x3c], str.oleaut32.dll
mov dword [ebp + 0x40], str.comctl32.dll
mov dword [ebp + 0x44], str.shell32.dll
mov dword [ebp + 0x48], str.advapi32.dll
mov dword [ebp + 0x4c], str.gdi32.dll
mov dword [ebp + 0x50], str.user32.dll
mov dword [ebp + 0x54], str.comdlg32.dll
mov dword [ebp + 0x58], str.msimg32.dll
mov dword [ebp + 0x5c], str.dbghelp.dll
mov dword [ebp + 0x60], str.version.dll
mov dword [ebp + 0x64], str.wininet.dll
mov dword [ebp + 0x68], str.urlmon.dll
mov dword [ebp + 0x6c], str.mpr.dll
mov dword [ebp + 0x70], str.uxtheme.dll
mov dword [ebp + 0x74], str.msi.dll
mov dword [ebp + 0x78], str.gdiplus.dll
mov dword [ebp + 0x7c], str.cabinet.dll
mov dword [ebp + 0x80], 0x4c3480
mov dword [ebp + 0x84], 0x4c97b4
mov dword [ebp + 0x88], str.rsaenh.dll
mov dword [ebp + 0x8c], str.apphelp.dll
mov dword [ebp + 0x90], str.msasn1.dll
mov dword [ebp + 0x94], str.crypt32.dll
mov dword [ebp + 0x98], str.wintrust.dll
mov dword [ebp + 0x9c], str.shlwapi.dll
mov dword [ebp + 0xa0], str.lpk.dll
mov dword [ebp + 0xa4], str.setupapi.dll
mov dword [ebp + 0xa8], str.usp10.dll
mov dword [ebp + 0xac], str.msihnd.dll
mov dword [ebp + 0xb0], str.shcore.dll
mov dword [ebp + 0xb4], str.cryptsp.dll
mov dword [ebp + 0xb8], str.secur32.dll
mov dword [ebp + 0xbc], str.samcli.dll
mov dword [ebp + 0xc0], str.ws2_32.dll
mov dword [ebp + 0xc4], str.netapi32.dll
mov dword [ebp + 0xc8], str.netutils.dll
mov dword [ebp + 0xcc], str.srvcli.dll
mov dword [ebp + 0xd0], str.wkscli.dll
mov ecx, dword [esi]
call fcn.00407ef0
add esi, 4
lea eax, [ebp + 0xd4]
cmp esi, eax
jne 0x46ceb1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.0046dac0
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ceef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46cf0e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xd4]
xor ecx, ebp
call fcn.0047d4df
lea esp, [ebp + 0xd8]
pop ebp
ret
push 0xe1
call fcn.0048a0f5
int3