Function at 0x5107a0
Capabilities:
Copy file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x57995d
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5d480c]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov esi, dword [esp + 0x264]
call fcn.0045e1b2
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x5107fe
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x1c]
push 0x5859d4
push ecx
mov dword [esp + 0x268], edi
call fcn.00404280
add esp, 0xc
cmp dword [esp + 0x26c], edi
jne 0x510af8
call fcn.0045e1b2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x51084f
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x18]
push 0x5c
push esi
mov byte [esp + 0x264], 1
call fcn.00494b37
add esp, 8
or ebp, 0xffffffff
cmp eax, edi
je 0x510885
sub eax, esi
sar eax, 1
cmp eax, ebp
jne 0x510895
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041a0d0
jmp 0x5108de
inc eax
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
call fcn.0041a160
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x260], 2
call fcn.0041a0d0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5108de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x268]
push 1
push ecx
lea ecx, [esp + 0x24]
call fcn.00510470
push 0x5a9f98
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x268], 3
call fcn.00407ab0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x34]
mov bl, 4
push edx
mov byte [esp + 0x274], bl
call fcn.0041a190
add esp, 0x18
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x260], 5
call fcn.0041a0d0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x25c], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510961
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 3
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510988
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, edi
jne 0x510aa1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x510a26
call esi
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 1
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5109d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5109fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x25c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x510a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x510d2e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510a4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510a74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x25c], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510a9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
jmp 0x510d2e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510ac8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510d0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x510d0c
push 0x204
lea ecx, [esp + 0x50]
push edi
push ecx
mov dword [esp + 0x54], edi
call fcn.00493420
add esp, 0xc
push 1
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.00473d97
push 0x592da4
push eax
call fcn.0047196b
mov bl, al
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or ebp, 0xffffffff
add esp, 8
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510b51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
test bl, bl
je 0x510b62
push str._s.
lea ecx, [esp + 0x50]
push ecx
jmp 0x510b6c
push 0x5a9f7c
lea edx, [esp + 0x50]
push edx
call fcn.00495368
mov eax, dword [esp + 0x274]
add esp, 0xc
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.00510470
push 0x5a9f78
lea ecx, [esp + 0x18]
mov byte [esp + 0x260], 6
call fcn.005106f0
mov eax, dword [esp + 0x14]
mov ecx, 0x10
mov word [esp + 0x38], cx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x48]
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3e], edi
mov dword [esp + 0x42], edi
mov dword [esp + 0x46], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, edi
je 0x510c9d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x510c48
call esi
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x510c19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x25c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x510a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x510d2e
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510c6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x25c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x510c93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffe
jmp 0x510d2e
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 0
mov edx, ebp
lea ecx, [eax + 0xc]
cmp dword [esp + 0x3a], edi
je 0x510cf5
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510cca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x25c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x510cee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffd
jmp 0x510d2e
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510d08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
lea eax, [esi - 0x10]
mov dword [esp + 0x25c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x510d2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00493eee
add esp, 0x24c
ret