Function at 0x10051390
Capabilities:
Copy file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x100939ea
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c6270]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x24], ebp
xor eax, eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x54]
push eax
call fcn.10050640
add esp, 4
mov dword [esp + 0x94], 1
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x58]
call fcn.1004f950
mov esi, eax
mov byte [esp + 0x94], 2
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
call fcn.1004f950
mov byte [esp + 0x94], 3
push esi
mov ecx, eax
call fcn.100512f0
test al, al
sete bl
mov byte [esp + 0x94], 2
lea ecx, [esp + 0x38]
call fcn.100115e0
mov byte [esp + 0x94], 1
lea ecx, [esp + 0x70]
call fcn.100115e0
test bl, bl
je 0x10051476
lea eax, [esp + 0x70]
push eax
mov ecx, ebp
call fcn.1004f950
mov byte [esp + 0x94], 4
add eax, 0x18
push eax
lea ecx, [esp + 0x70]
call fcn.100119a0
mov byte [esp + 0x94], 1
lea ecx, [esp + 0x70]
call fcn.100115e0
lea ecx, [esp + 0x18]
push ecx
call fcn.100752a8
add esp, 4
test eax, eax
je 0x10051490
call fcn.10075277
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x9c]
lea edx, [esp + 0x50]
mov eax, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov bl, 6
jmp 0x100514b0
push 0x100cbb74
lea ecx, [esp + 0x20]
call fcn.100015c0
mov byte [esp + 0x94], bl
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push str._03x
push edx
call fcn.10011020
add esp, 0xc
push str.INS_
lea ecx, [esp + 0x18]
call fcn.10001fa0
mov byte [esp + 0x94], 7
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.1000d740
push 4
push str..TMP
lea ecx, [esp + 0x1c]
call fcn.1000d740
lea ecx, [esp + 0x38]
call fcn.10011510
mov byte [esp + 0x94], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.10002250
add eax, 0x10
add esp, 4
mov dword [esp + 0x50], eax
mov byte [esp + 0x94], 0xb
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
call fcn.1000e8e0
or dword [esp + 0x20], 1
mov byte [esp + 0x94], 0xc
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10051582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x94], 7
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp byte [esp + 0xa0], 0
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp + 0x18]
push 0
push eax
push ecx
je 0x100515b1
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x100515b7
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1005162c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0x50
je 0x100515d4
cmp ebp, 0xb7
jne 0x100516e6
mov byte [esp + 0x94], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100515fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x94], 1
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005161f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
jmp 0x100514b0
mov byte [esp + 0x94], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x94], 1
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051677
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, 0x12
mov dword [esp + 0x94], eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x94], al
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100516b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x94], 0
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 8
cmp byte [esp + 0xa0], 0
mov ebx, str.While_moving
jne 0x100516fa
mov ebx, str.While_copying
add edi, 0x18
push edi
lea ecx, [esp + 0x30]
call fcn.100022c0
mov esi, eax
mov byte [esp + 0x94], 0x16
mov edx, dword [esp + 0x24]
add edx, 0x18
push edx
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.1000d0c0
mov byte [esp + 0xa0], 0x17
push str._to
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.1000cee0
mov byte [esp + 0xac], 0x18
push esi
push eax
lea edx, [esp + 0x54]
push edx
call fcn.1004e2e0
add esp, 0x24
mov byte [esp + 0x94], 0x19
mov eax, dword [eax]
push eax
push 0x4d2
push str..FilePath.cpp
push ebp
call fcn.10010910
int3