Function at 0x470c80
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0xd8
push 0xffffffffffffffff
push 0x4d2189
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x509074]
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.004710d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040ea10
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 0x470d40
lea ecx, [ebp - 0x18]
call fcn.004711d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
push eax
call fcn.00409440
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 0x470d24
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.0040ea10
test al, al
jne 0x4710c1
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.00471e00
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 [0x50c410]
mov dword [ebp - 0x18], eax
cmp ecx, dword [eax + 4]
jle 0x470dcc
push 0x50c410
call fcn.00496c4b
add esp, 4
cmp dword [0x50c410], 0xffffffff
jne 0x470dcc
mov byte [ebp - 4], 6
push str.SetSearchPathMode
push esi
call ebx
mov dword [0x50c414], eax
mov byte [ebp - 4], 5
push 0x50c410
call fcn.00496bfa
add esp, 4
mov eax, dword [0x50c414]
test eax, eax
je 0x470ddc
push 0x8001
call eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x50c418]
cmp eax, dword [ecx + 4]
jle 0x470e24
push 0x50c418
call fcn.00496c4b
add esp, 4
cmp dword [0x50c418], 0xffffffff
jne 0x470e24
mov byte [ebp - 4], 7
push str.SetDllDirectory
push esi
call ebx
mov dword [0x50c41c], eax
mov byte [ebp - 4], 5
push 0x50c418
call fcn.00496bfa
add esp, 4
mov eax, dword [0x50c41c]
test eax, eax
je 0x470e34
push 0x4e2418
call eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x50c420]
cmp eax, dword [ecx + 4]
jle 0x470e7c
push 0x50c420
call fcn.00496c4b
add esp, 4
cmp dword [0x50c420], 0xffffffff
jne 0x470e7c
mov byte [ebp - 4], 8
push str.SetDefaultDllDirectories
push esi
call ebx
mov dword [0x50c424], eax
mov byte [ebp - 4], 5
push 0x50c420
call fcn.00496bfa
add esp, 4
mov eax, dword [0x50c424]
test eax, eax
je 0x470e8c
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], 0x4e858c
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], 0x4e2800
mov dword [ebp + 0x84], 0x4e8bbc
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.004082a0
add esi, 4
lea eax, [ebp + 0xd4]
cmp esi, eax
jne 0x471041
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.00471c50
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 0x47107f
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 0x47109e
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.00496b9e
lea esp, [ebp + 0xd8]
pop ebp
ret
push 0xe1
call fcn.004a85ad
int3