Function at 0x470b40
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0xd8
push 0xffffffffffffffff
push 0x4d2d19
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x50a074]
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.00470f90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040ea60
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 0x470c00
lea ecx, [ebp - 0x18]
call fcn.00471090
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
push eax
call fcn.00409490
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 0x470be4
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.0040ea60
test al, al
jne 0x470f81
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.00471cc0
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 [0x50d440]
mov dword [ebp - 0x18], eax
cmp ecx, dword [eax + 4]
jle 0x470c8c
push 0x50d440
call fcn.004974da
add esp, 4
cmp dword [0x50d440], 0xffffffff
jne 0x470c8c
mov byte [ebp - 4], 6
push str.SetSearchPathMode
push esi
call ebx
mov dword [0x50d444], eax
mov byte [ebp - 4], 5
push 0x50d440
call fcn.00497490
add esp, 4
mov eax, dword [0x50d444]
test eax, eax
je 0x470c9c
push 0x8001
call eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x50d448]
cmp eax, dword [ecx + 4]
jle 0x470ce4
push 0x50d448
call fcn.004974da
add esp, 4
cmp dword [0x50d448], 0xffffffff
jne 0x470ce4
mov byte [ebp - 4], 7
push str.SetDllDirectory
push esi
call ebx
mov dword [0x50d44c], eax
mov byte [ebp - 4], 5
push 0x50d448
call fcn.00497490
add esp, 4
mov eax, dword [0x50d44c]
test eax, eax
je 0x470cf4
push 0x4e6df8
call eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x50d450]
cmp eax, dword [ecx + 4]
jle 0x470d3c
push 0x50d450
call fcn.004974da
add esp, 4
cmp dword [0x50d450], 0xffffffff
jne 0x470d3c
mov byte [ebp - 4], 8
push str.SetDefaultDllDirectories
push esi
call ebx
mov dword [0x50d454], eax
mov byte [ebp - 4], 5
push 0x50d450
call fcn.00497490
add esp, 4
mov eax, dword [0x50d454]
test eax, eax
je 0x470d4c
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], 0x4ecf6c
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], 0x4e71e0
mov dword [ebp + 0x84], 0x4ed59c
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.004082f0
add esi, 4
lea eax, [ebp + 0xd4]
cmp esi, eax
jne 0x470f01
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.00471b10
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 0x470f3f
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 0x470f5e
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.00497376
lea esp, [ebp + 0xd8]
pop ebp
ret
push 0xe1
call fcn.004a8ead
int3