Function at 0x100184e0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10059420
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10078c14]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ebx, dword [ecx]
mov esi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
test esi, esi
mov edi, dword [eax + 4]
je 0x10018531
cmp esi, eax
je 0x10018536
call fcn.10040f6d
cmp ebx, edi
je 0x100186ce
test esi, esi
jne 0x10018547
call fcn.10040f6d
cmp ebx, dword [esi + 4]
jne 0x10018551
call fcn.10040f6d
mov esi, dword [ebx + 0xc]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x1001857b
cmp eax, dword [esi]
jne 0x1001857b
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x100185b6
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x100186c9
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.10040a33
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x1c]
cmp ebx, dword [ecx + 4]
jne 0x100185d3
call fcn.10040f6d
mov esi, dword [ebx + 0x10]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x100185fd
cmp eax, dword [esi]
jne 0x100185fd
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x10018638
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x100186c9
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.10040a33
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x30], 3
mov edi, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x10018664
mov dword [esp + 0x10], 0x88018001
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x30], 1
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001868c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100186b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x1c]
call fcn.100121b0
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
jmp 0x10018526
call fcn.1000cc90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4