Function at 0x476f30
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498610
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4c7650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x477110
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x477110
add eax, 0xfffffff0
push eax
call fcn.00405350
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov eax, dword [esi]
sub eax, 0x10
push eax
mov dword [ebp - 4], 0
call fcn.00405350
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov edi, dword [edi - 0xc]
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp + 8], edx
add edi, 2
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.00477302
add esp, 0xc
mov ebx, eax
test edi, edi
je 0x476feb
xor eax, eax
movzx edx, ax
mov ecx, edi
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
mov edi, ebx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
lea ecx, [eax + eax]
push ecx
push edx
push ebx
call fcn.0047c8d0
mov edi, dword [ebp + 8]
add edi, 2
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x14], edi
neg ecx
or ecx, eax
push ecx
call fcn.00477302
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x18], edi
test ecx, ecx
je 0x477044
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
lea ecx, [eax + eax]
push ecx
push esi
push edi
call fcn.0047c8d0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x38], eax
add esp, 0xc
lea eax, [ebp - 0x38]
mov edx, 0x215
push eax
mov dword [ebp - 0x34], 2
mov word [ebp - 0x28], dx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x26], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push ebx
mov dword [ebp + 8], eax
call fcn.00479b81
push edi
call fcn.00479b81
xor ecx, ecx
add esp, 8
cmp dword [ebp + 8], ecx
mov byte [ebp - 4], 0
sete cl
add esi, 0xfffffff0
lea edx, [esi + 0xc]
or eax, 0xffffffff
mov edi, ecx
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4770d6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4770fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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