Function at 0x44210c
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0x84
mov eax, 0x5f67b3
call fcn.004e1c06
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov ecx, vtable.ClassPtr_class_FSItem_.0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
xor eax, eax
mov edi, eax
movlpd qword [ebp - 0x80], xmm0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x7c], edi
movlpd qword [ebp - 0x88], xmm0
mov dword [ebp - 0x88], ecx
mov ecx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x84], ecx
push esi
mov byte [ebp - 4], 1
mov ebx, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x442194
mov ebx, 0x80070002
push 0x547
push 0x6235a0
push ebx
call fcn.0043bc7d
jmp 0x442668
push dword [ebp - 0x38]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne byte [ebp - 0x3d]
test eax, eax
je 0x4421b9
test byte [ebp - 0x68], 1
je 0x4421b9
mov ebx, 0x80070050
push 0x54b
jmp 0x442184
mov edi, dword [ebp - 0x3c]
lea eax, [edi + 0x70]
push eax
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x74], 1
lea eax, [edi + 8]
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x44], eax
call fcn.0040ab57
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [edi + 8]
call fcn.0043f201
mov edi, dword [edi + 0xc]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
mov esi, dword [eax]
call fcn.00405a95
cmp esi, edi
je 0x44224c
push dword [ebp - 0x34]
lea ecx, [ebp - 0x60]
call fcn.0040ab57
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 4
call fcn.00445f06
mov edi, dword [eax + 4]
mov dword [ebp - 0x64], edi
test edi, edi
je 0x44223d
mov eax, dword [edi]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x6147a0]
call esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x7c], edi
mov byte [ebp - 4], 2
call fcn.00405a95
push dword [ebp - 0x38]
lea ecx, [ebp - 0x60]
call fcn.0040ab57
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
push eax
call fcn.0043f201
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
mov esi, dword [eax]
mov edi, dword [edi + 0xc]
call fcn.00405a95
cmp esi, edi
je 0x4422c5
push dword [ebp - 0x38]
lea ecx, [ebp - 0x60]
call fcn.0040ab57
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 6
call fcn.00445f06
mov edi, dword [eax + 4]
mov dword [ebp - 0x48], edi
test edi, edi
je 0x4422b7
mov eax, dword [edi]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x6147a0]
call esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x84], edi
call fcn.00405a95
push dword [ebp - 0x78]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x64]
mov byte [ebp - 0x74], 0
test edi, edi
je 0x4422e7
cmp byte [edi + 0x6c], 0
jne 0x4423bc
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x34]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x6147a0]
call esi
mov ebx, eax
test ebx, ebx
jns 0x44230d
push 0x55e
jmp 0x442184
test edi, edi
jne 0x4423cf
mov eax, dword [ebp - 0x78]
push eax
mov dword [ebp - 0x90], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x8c], 1
push dword [ebp - 0x34]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.0040ab57
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
call fcn.0043f201
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
mov esi, dword [eax]
mov edi, dword [edi + 0xc]
call fcn.00405a95
cmp esi, edi
je 0x4423a5
push dword [ebp - 0x34]
lea ecx, [ebp - 0x60]
call fcn.0040ab57
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 9
call fcn.00445f06
mov edi, dword [eax + 4]
test edi, edi
je 0x442398
mov eax, dword [edi]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x6147a0]
call esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x7c], edi
call fcn.00405a95
jmp 0x4423a8
mov edi, dword [ebp - 0x64]
push dword [ebp - 0x78]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x8c], 0
test edi, edi
jne 0x4423cf
mov ebx, 0x80040b02
push 0x56c
jmp 0x442184
mov esi, dword [ebp - 0x34]
cmp edi, dword [ebp - 0x48]
je 0x44256c
cmp dword [ebp + 8], 0
jne 0x4423ea
mov ecx, dword [ebp - 0x3c]
push esi
call fcn.00444ee3
mov ebx, dword [ebp - 0x68]
and ebx, 1
jne 0x44242f
cmp byte [ebp - 0x3d], bl
je 0x44242f
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x44242f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
shr eax, 0x1f
test al, al
je 0x442668
push 0x57d
jmp 0x442184
cmp dword [ebp + 8], 0
jne 0x442473
push ebx
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x442565
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
shr eax, 0x1f
test al, al
je 0x442668
push 0x584
jmp 0x442184
push 2
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x442565
push ebx
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4424c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
shr eax, 0x1f
test al, al
je 0x442668
push 0x58d
jmp 0x442184
test edi, edi
je 0x4424dc
mov ecx, edi
call fcn.00446a26
mov ebx, eax
test ebx, ebx
jns 0x4424dc
push 0x592
jmp 0x442184
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x442565
mov ebx, dword [ebp - 0x68]
test bl, 4
jne 0x442565
push esi
lea ecx, [ebp - 0x60]
call fcn.0040ab57
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x30]
call fcn.0040ada4
shr ebx, 1
and bl, 1
mov dword [ebp - 0x18], reloc.WS2_32.dll_accept
mov byte [ebp - 0x14], bl
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xc
call fcn.00405a95
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
mov esi, dword [eax + 0x70]
lea eax, [ebp - 0x30]
push eax
push ecx
mov ecx, esi
call dword [0x6147a0]
call esi
mov ebx, eax
test ebx, ebx
jns 0x44255d
push 0x597
push 0x6235a0
push ebx
call fcn.0043bc7d
lea ecx, [ebp - 0x30]
call fcn.00405a95
jmp 0x442668
lea ecx, [ebp - 0x30]
call fcn.00405a95
xor ebx, ebx
jmp 0x442668
cmp dword [ebp + 8], 0
je 0x4425e6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4425e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4425a9
cmp eax, 0x20
je 0x4425a9
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x4425e6
push 0x5b2
jmp 0x442184
test edi, edi
jne 0x4425ae
int3
push esi
lea ecx, [ebp - 0x60]
call fcn.0040ab57
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xd
push eax
mov ecx, edi
call fcn.0044656d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
mov ebx, eax
call fcn.00405a95
test ebx, ebx
jns 0x4425e6
push 0x5ad
jmp 0x442184
mov byte [ebp - 0x6c], 1
cmp edi, dword [ebp - 0x48]
je 0x442622
push dword [ebp - 0x38]
lea ecx, [ebp - 0x60]
call fcn.0040ab57
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x60]
push edi
push eax
mov byte [ebp - 4], 0xe
call fcn.00441bd0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
mov ebx, eax
call fcn.00405a95
test ebx, ebx
jns 0x442622
mov esi, ebx
mov eax, 0x5ce
jmp 0x44265b
cmp byte [ebp - 0x6c], 0
je 0x442668
push esi
lea ecx, [ebp - 0x60]
call fcn.0040ab57
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x60]
push edi
push eax
mov byte [ebp - 4], 0xf
call fcn.004446e9
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
mov ebx, eax
mov esi, eax
call fcn.00405a95
test ebx, ebx
jns 0x442668
mov eax, 0x5d4
push eax
push 0x6235a0
push esi
call fcn.0043bc7d
int3
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x442683
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6147a0]
call esi
mov dword [ebp - 4], 0x12
test edi, edi
je 0x44269e
mov ecx, dword [edi]
push edi
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x6147a0]
call esi
mov eax, ebx
call fcn.004e1bb5
ret 0x10