Function at 0x57d3c0
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d301d
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x10]
mov eax, 0x92492493
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 0x644170
mov dword [ebp - 0x24], 0
mov ecx, dword [edi + 4]
mov esi, dword [edi]
sub ecx, esi
imul ecx
mov byte [ebp - 0x11], 0
add edx, ecx
mov dword [ebp - 0x20], 0x10e0
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x57d445
test eax, eax
jne 0x57d43b
push str.invalid_vector_T__subscript
call fcn.00545b0e
mov ecx, esi
call fcn.005b00f0
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x14]
call fcn.005b00f0
mov esi, dword [edi + 4]
mov ebx, eax
mov ecx, dword [edi]
mov eax, 0x92492493
mov edi, esi
sub edi, ecx
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x57d47d
cmp ebx, 0x10e5
jne 0x57d47d
mov ebx, 0x10e6
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x54], esi
cmp ecx, esi
je 0x57d4a3
mov dword [ebp - 0x54], esi
mov eax, 0x128e
cmp word [ecx + 0x18], ax
jne 0x57d49f
add ecx, 0x1c
cmp ecx, esi
jne 0x57d490
jmp 0x57d4a3
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.SUCMLIB.dll_Ordinal_80]
mov ecx, dword [0x643bcc]
test ecx, ecx
je 0x57d4dc
push dword [ebp + 0x18]
xor eax, eax
cmp dword [ebp + 0xc], 0x9fbf1
push dword [ebp - 0x18]
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
cmp byte [0x6441e2], 0
jne 0x57d4f5
mov ecx, dword [ebp - 0x18]
push 0xff1
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, dword [ebp - 0x18]
push dword [0x6441e4]
mov eax, dword [ecx]
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x18]
push dword [0x6441e8]
mov eax, dword [ecx]
call dword [eax + 0xb8]
cmp dword [ebp - 0x20], ebx
jne 0x57d62d
cmp byte [ebp - 0x19], 0
jne 0x57d62d
mov ebx, dword [ebp + 0x10]
mov eax, 0x92492493
mov ecx, dword [ebx + 4]
mov esi, dword [ebx]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x57d553
push str.invalid_vector_T__subscript
call fcn.00545b0e
mov edi, dword [ebp + 0x14]
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x57d617
mov ecx, dword [ebx + 4]
mov eax, 0x92492493
mov esi, dword [ebx]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x57d58e
push str.invalid_vector_T__subscript
call fcn.00545b0e
push 0
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x57d617
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x57d5fe
sub eax, 2
je 0x57d5e5
sub eax, 0x6b
je 0x57d5cc
mov eax, 0x9ca03
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9e700
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9f404
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x97203
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
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 0x18
mov ecx, 9
mov dword [ebp - 0x30], 0
lea esi, [ebp - 0x48]
mov dword [ebp - 0x48], 0
mov edi, 0x639944
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xb
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
rep movsd dword es:[edi], dword [esi]
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x57d68d
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x57d6a2
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x57d6a4
call edx
lea esi, [eax + 0x10]
mov dword [ebp + 0x18], esi
mov byte [ebp - 4], 1
mov edi, 1
mov eax, dword [esi - 8]
mov ecx, edi
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x57d6d4
push 0x104
lea ecx, [ebp + 0x18]
call fcn.00402cf0
mov esi, dword [ebp + 0x18]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esi - 8]
push esi
call fcn.0054c667
add esp, 8
test eax, eax
js 0x57dc77
cmp eax, dword [esi - 8]
jg 0x57dc77
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [esi - 8]
mov ebx, eax
sub edi, dword [esi - 4]
sub ecx, 0x104
or ecx, edi
jge 0x57d733
push 0x104
lea ecx, [ebp + 0x18]
call fcn.00402cf0
mov esi, dword [ebp + 0x18]
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.0054c667
add esp, 8
test eax, eax
js 0x57dc77
cmp eax, dword [esi - 8]
jg 0x57dc77
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], cx
lea edi, [esi - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, dword [edi]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x57d778
call dword [eax + 0x10]
mov ecx, eax
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jl 0x57d78c
cmp ecx, dword [edi]
jne 0x57d78c
mov ebx, edi
lock inc dword [eax]
jmp 0x57d7c7
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x57d7a0
call fcn.00402e60
mov eax, dword [edi + 4]
lea ecx, [ebx + 0x10]
mov dword [ebx + 4], eax
mov edx, dword [edi + 4]
lea eax, [edx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea edx, [edx*2 + 2]
call fcn.0056c4f0
add esp, 8
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x58]
call fcn.005b0260
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x57d857
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x57d848
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x57d848
push edx
call fcn.004035b0
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x57d840
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x57d83e
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57d83e
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea esi, [ebx + 0x10]
mov dword [ebp + 0x18], esi
jmp 0x57d857
call edx
lea esi, [ebx + 0x10]
mov dword [ebp + 0x18], esi
jmp 0x57d857
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp + 0x18]
call fcn.00403620
mov esi, dword [ebp + 0x18]
mov byte [ebp - 4], 1
or edx, 0xffffffff
mov ecx, dword [ebp - 0x58]
mov eax, edx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x57d89f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x57d89b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57d89b
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x57d89f
mov ecx, edx
call edi
mov ecx, dword [ebp + 0x10]
mov bl, 1
mov bh, bl
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x4c], ecx
cmp eax, ecx
je 0x57d8ec
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax + 8]
dec edx
neg edx
sbb dl, dl
and bl, dl
mov edx, dword [eax + 0x14]
cmp edx, 0x4b
jl 0x57d8e1
cmp edx, 0x258
jg 0x57d8e1
cmp dword [eax + 0xc], 0x27d8
jg 0x57d8e1
cmp dword [eax + 0x10], 0x27d8
jle 0x57d8e5
xor bl, bl
xor bh, bh
add eax, 0x1c
cmp eax, ecx
jne 0x57d8b5
push dword [ebp + 0xc]
push 1
push ecx
push 0
call fcn.005832c0
test al, al
jne 0x57d912
push 0x62e4b0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xaed
push eax
call fcn.005479aa
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0x28]
movzx eax, ax
mov ecx, 0x1181
cmp ax, cx
jne 0x57d93b
test bl, bl
jne 0x57d93b
mov ecx, dword [ebp - 0x18]
push 0x1180
mov eax, dword [ecx]
call dword [eax + 0x88]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0x10]
movzx eax, ax
mov ecx, 0xff0
cmp ax, cx
jne 0x57d961
test bh, bh
jne 0x57d961
mov ecx, dword [ebp - 0x18]
push 0xff1
mov eax, dword [ecx]
call dword [eax + 0x70]
push dword [ebp - 0x18]
call dword [0x643b88]
test al, al
lea eax, [ebp - 0x18]
push eax
jne 0x57d98d
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
push 0x62e4b0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0xb01
push eax
call fcn.005479aa
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
mov byte [ebp - 0x11], 1
call dword [0x643b4c]
test al, al
jne 0x57d9b6
push 0x62e4b0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0xb0d
push eax
call fcn.005479aa
mov ecx, dword [ebp + 0x10]
mov ebx, dword [sym.imp.SUCMLIB.dll_Ordinal_72]
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x98], eax
cmp edi, eax
je 0x57db47
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
call dword [sym.imp.SUCMLIB.dll_Ordinal_73]
mov ecx, dword [ebp + 0xc]
push dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x1c]
fild dword [edi + 0x14]
fstp qword [ebp - 0xa0]
fld qword [ebp - 0xa0]
mov eax, dword [edi + 4]
dec eax
fst qword [ebp - 0x34]
fstp qword [ebp - 0x2c]
cmp eax, 0x2f
ja case.0x57da12.2
movzx eax, byte [eax + 0x57dda0]
jmp dword [eax*4 + 0x57dd84]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 1
jmp 0x57da69
mov dword [ebp - 0x38], 1
jmp 0x57da62
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 0x10
jmp 0x57da69
mov dword [ebp - 0x38], 4
jmp 0x57da62
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x3c], 0x10
jmp 0x57da69
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x3c], 8
mov eax, dword [edi + 0xc]
lea edx, [ebp - 0x44]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
push esi
mov eax, dword [ecx]
call dword [eax + 0x20]
push dword [ebp + 0xc]
call dword [0x643b74]
test al, al
lea eax, [ebp + 0xc]
push eax
jne 0x57dab9
call dword [sym.imp.SUCMLIB.dll_Ordinal_76]
push 0x62e4b0
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0xb2e
push eax
call fcn.005479aa
call dword [sym.imp.SUCMLIB.dll_Ordinal_76]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
call dword [sym.imp.SUCMLIB.dll_Ordinal_70]
mov ecx, dword [ebp - 0x20]
movzx eax, word [edi + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x24]
cmp dword [0x6441bc], 0
je 0x57db12
mov ecx, dword [0x6441c8]
test ecx, ecx
je 0x57db12
mov eax, dword [ecx]
call dword [eax + 0xac]
movzx eax, ax
mov ecx, 0xff0
cmp ax, cx
jne 0x57db12
mov ecx, dword [ebp - 0x20]
push 0xff0
mov eax, dword [ecx]
call dword [eax + 0x28]
push dword [ebp - 0x20]
call dword [0x643b3c]
test al, al
lea eax, [ebp - 0x20]
push eax
jne 0x57db3a
call ebx
push 0x62e4b0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0xb41
push eax
call fcn.005479aa
call ebx
mov ecx, dword [ebp + 0x10]
add edi, 0x1c
jmp 0x57d9c1
call dword [0x643b70]
xor al, al
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x8c], al
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 2
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
lea esp, [esp]
test al, al
jne 0x57dbd8
push 1
lea eax, [ebp - 0x94]
push eax
call dword [0x643b58]
test al, al
je 0x57dbbf
mov al, byte [ebp - 0x8c]
jmp 0x57dba0
push 0x62e4b0
lea eax, [ebp - 0x70]
mov byte [ebp - 0x11], 0
push eax
mov dword [ebp - 0x70], 0xb58
call fcn.005479aa
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x57dc2d
push eax
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x57dc2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x57dc26
sub eax, 2
je 0x57dc1d
sub eax, 0x6b
je 0x57dc14
mov dword [ebp - 0x24], 0x9ca04
jmp 0x57dc2d
mov dword [ebp - 0x24], 0x9e701
jmp 0x57dc2d
mov dword [ebp - 0x24], 0x9f405
jmp 0x57dc2d
mov dword [ebp - 0x24], 0x97204
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x57dcea
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x57dc73
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57dc73
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x57dcea
call edx
jmp 0x57dcea
push 0x80070057
call fcn.00402650
cmp byte [ebp - 0x11], 0
je 0x57dcb9
call dword [0x643b24]
lea ecx, [ebp - 0xc4]
call fcn.00403c10
cmp byte [ebp - 0xbc], 0
jne 0x57dcb9
push 1
lea eax, [ebp - 0xc4]
push eax
call dword [0x643b58]
cmp byte [ebp - 0xbc], 0
je 0x57dca1
mov edi, dword [ebp - 0x50]
cmp dword [edi + 0x44], 0
lea esi, [edi + 0x44]
jne 0x57dccc
push esi
call dword [0x643b34]
mov eax, dword [esi]
mov dword [ebp + 0x14], eax
mov dword [edi + 0x48], eax
mov eax, 0x57dce4
mov dword [esi], 0
mov byte [edi + 0x72], 0
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x6441b4]
test eax, eax
je 0x57dd2c
cmp eax, 2
je 0x57dd1d
mov cl, byte [0x6441e0]
cmp cl, 0xc
je 0x57dd1d
cmp cl, 0xd
je 0x57dd1d
mov edx, eax
xor ecx, ecx
call fcn.0056c650
mov eax, dword [0x6441b4]
mov dword [0x6441b8], eax
mov dword [0x6441b4], 0
cmp byte [0x6441cc], 0
je 0x57dd40
mov eax, dword [0x643b30]
test eax, eax
je 0x57dd40
call eax
mov ebx, dword [ebp + 0x10]
mov word [0x6441cc], 0
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x57dd6c
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esp, [esp]
push dword [esi]
call edi
add esi, 0x1c
cmp esi, dword [ebx + 4]
jne 0x57dd60
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18