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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a8a7
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push esi
push edi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, dword [eax]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x11], cl
mov ecx, dword [eax + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x24], 0x5dd9b8
mov dword [ebp - 0x1c], 0x10e0
je 0x552825
push esi
call fcn.005300e0
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.005300e0
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
mov edi, dword [eax]
mov ecx, esi
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 4
cmp eax, 1
jbe 0x552864
cmp ebx, 0x10e5
jne 0x552864
mov ebx, 0x10e6
xor al, al
cmp edi, esi
je 0x552877
mov ecx, 0x128e
cmp word [edi + 0x18], cx
je 0x5528b3
mov al, 1
cmp dword [ebp - 0x1c], ebx
jne 0x552951
test al, al
jne 0x552951
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov edi, dword [edx]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x5528b8
push str.invalid_vector_T__subscript
call fcn.0051b845
add edi, 0x1c
jmp 0x552866
mov ecx, dword [ecx]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x553005
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov edi, dword [ecx]
mov ecx, dword [eax + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x5528f8
push str.invalid_vector_T__subscript
call fcn.0051b845
mov esi, dword [esi]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x553005
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x552945
sub eax, 2
je 0x552939
sub eax, 0x6b
je 0x55292d
mov dword [ebp - 0x18], 0x9ca03
jmp 0x553005
mov dword [ebp - 0x18], 0x9e700
jmp 0x553005
mov dword [ebp - 0x18], 0x9f404
jmp 0x553005
mov dword [ebp - 0x18], 0x97203
jmp 0x553005
mov eax, 0x557f90
xor ecx, ecx
cmp eax, ecx
je 0x55298a
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x48], cl
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov ecx, 9
lea esi, [ebp - 0x50]
mov edi, 0x5d6a14
mov dword [ebp - 0x3c], 0xb
rep movsd dword es:[edi], dword [esi]
call fcn.0040c84f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x5529a4
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5529db
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.004019b0
mov edi, dword [ebp - 0x1c]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004ff818
add esp, 8
test eax, eax
js 0x552f22
cmp eax, dword [edi - 8]
jg 0x552f22
mov edx, dword [ebp + 0x10]
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [edx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x552a40
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.004019b0
mov edi, dword [ebp - 0x1c]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004ff818
add esp, 8
test eax, eax
js 0x552f22
cmp eax, dword [edi - 8]
jg 0x552f22
xor ecx, ecx
mov dword [edi - 0xc], eax
push ecx
mov word [edi + eax*2], cx
mov dword [ebp - 0x54], esp
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [edi - 0x10]
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x552a9c
cmp eax, dword [esi]
jne 0x552a9c
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x552ad8
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
jne 0x552ab5
call fcn.00401ae0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004ffad4
add esp, 0x10
lea edx, [ebp - 0x54]
add edi, 0x10
push edx
mov dword [ebx], edi
call fcn.00531490
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
cmp eax, esi
je 0x552b3b
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x552b2e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x552b2e
push eax
call fcn.00401a10
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x552b26
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
jmp 0x552b3b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00401900
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x552b5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov bl, 1
mov byte [ebp - 0x12], bl
mov edx, 0x27d8
mov edi, 1
cmp eax, dword [esi + 4]
je 0x552ba2
cmp dword [eax + 8], edi
jne 0x552b7e
xor bl, bl
mov ecx, dword [eax + 0x14]
cmp ecx, 0x4b
jl 0x552b98
cmp ecx, 0x258
jg 0x552b98
cmp dword [eax + 0xc], edx
jg 0x552b98
cmp dword [eax + 0x10], edx
jle 0x552b9d
xor bl, bl
mov byte [ebp - 0x12], bl
add eax, 0x1c
jmp 0x552b72
mov esi, dword [ebp + 8]
push esi
push 1
xor edi, edi
push edi
call fcn.0054edf0
test al, al
jne 0x552bc9
push 0x5c77e8
lea ecx, [ebp - 0x68]
push ecx
mov dword [ebp - 0x68], 0x954
call fcn.005039bf
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], edi
call dword [sym.imp.SUCMLIB.dll_Ordinal_80]
xor eax, eax
cmp esi, 0x9fbf1
jne 0x552be5
mov eax, 1
mov ecx, dword [0x5dd554]
cmp ecx, edi
je 0x552c01
mov edx, dword [ebp + 0x14]
mov eax, dword [eax*4 + 0x5dd9a0]
push edx
mov edx, dword [ebp - 0x20]
push edx
push eax
call ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
movzx eax, ax
mov ecx, 0x1181
cmp ax, cx
jne 0x552c2b
test bl, bl
jne 0x552c2b
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x74]
push 0x1180
call eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
movzx eax, ax
mov ecx, 0xff0
cmp ax, cx
jne 0x552c57
cmp byte [ebp - 0x12], 0
jne 0x552c57
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
push 0xff1
call eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x5dd488]
test al, al
jne 0x552c84
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
push 0x5c77e8
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x96a
call fcn.005039bf
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
mov byte [ebp - 0x11], 1
call dword [0x5dd48c]
test al, al
jne 0x552cb1
push 0x5c77e8
lea edx, [ebp - 0x6c]
push edx
mov dword [ebp - 0x6c], 0x976
call fcn.005039bf
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x552e35
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.SUCMLIB.dll_Ordinal_73]
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
call eax
fild dword [esi + 0x14]
mov eax, dword [esi + 4]
dec eax
fst qword [ebp - 0x40]
fstp qword [ebp - 0x38]
cmp eax, 0x2f
ja case.0x552cf2.2
movzx ecx, byte [eax + 0x553038]
jmp dword [ecx*4 + 0x55301c]
mov eax, 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
jmp 0x552d46
mov dword [ebp - 0x44], 1
jmp 0x552d3f
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x48], 0x10
jmp 0x552d46
mov dword [ebp - 0x44], 4
jmp 0x552d3f
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x48], 0x10
jmp 0x552d46
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x48], 8
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x50]
push eax
call edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
push edx
call eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x5dd494]
test al, al
jne 0x552d9b
lea edx, [ebp + 8]
push edx
call dword [sym.imp.SUCMLIB.dll_Ordinal_76]
push 0x5c77e8
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], 0x997
call fcn.005039bf
lea ecx, [ebp + 8]
push ecx
call dword [sym.imp.SUCMLIB.dll_Ordinal_76]
lea edx, [ebp + 0x14]
push edx
mov dword [ebp + 0x14], edi
call dword [sym.imp.SUCMLIB.dll_Ordinal_70]
mov ecx, dword [ebp + 0x14]
movzx edx, word [esi + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push edx
call eax
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x50], edi
je 0x552df6
mov ecx, dword [eax + 0x5c]
cmp ecx, edi
je 0x552df6
mov edx, dword [ecx]
mov eax, dword [edx + 0xa8]
call eax
movzx eax, ax
mov ecx, 0xff0
cmp ax, cx
jne 0x552df6
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0xff0
call eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [0x5dd498]
test al, al
jne 0x552e23
lea edx, [ebp + 0x14]
push edx
call dword [sym.imp.SUCMLIB.dll_Ordinal_72]
push 0x5c77e8
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 0x9aa
call fcn.005039bf
lea ecx, [ebp + 0x14]
push ecx
call dword [sym.imp.SUCMLIB.dll_Ordinal_72]
add esi, 0x1c
jmp 0x552cb6
call dword [0x5dd490]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov byte [ebp - 0x8c], 0
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], 2
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
cmp byte [ebp - 0x8c], 0
jne 0x552e9e
push 1
lea edx, [ebp - 0x94]
push edx
call dword [0x5dd49c]
test al, al
jne 0x552e6a
mov byte [ebp - 0x11], al
push 0x5c77e8
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x9c1
call fcn.005039bf
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
mov edi, dword [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x552ef9
mov eax, dword [esi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x552ef9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x552ef2
sub eax, 2
je 0x552ee9
sub eax, 0x6b
je 0x552ee0
mov dword [ebp - 0x18], 0x9ca04
jmp 0x552ef9
mov dword [ebp - 0x18], 0x9e701
jmp 0x552ef9
mov dword [ebp - 0x18], 0x9f405
jmp 0x552ef9
mov dword [ebp - 0x18], 0x97204
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x552f19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x552f99
push 0x80070057
call fcn.004010a0
cmp byte [ebp - 0x11], 0
je 0x552f68
call dword [0x5dd4b8]
lea eax, [ebp - 0xb8]
call fcn.00402ba0
cmp byte [ebp - 0xb0], 0
jne 0x552f68
lea esp, [esp]
push 1
lea ecx, [ebp - 0xb8]
push ecx
call dword [0x5dd49c]
cmp byte [ebp - 0xb0], 0
je 0x552f50
mov edi, dword [ebp - 0x24]
cmp dword [edi + 0x48], 0
lea esi, [edi + 0x48]
jne 0x552f7b
push esi
call dword [0x5dd4a0]
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov dword [edi + 0x4c], eax
mov dword [esi], 0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x552f96
ret
mov esi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x552fcc
cmp ecx, 2
je 0x552fbf
mov al, byte [esi + 0x74]
cmp al, 0xc
je 0x552fbf
cmp al, 0xd
je 0x552fbf
mov edx, dword [ebp - 0x60]
push edx
call fcn.00564a20
add esp, 4
mov eax, dword [esi + 0x48]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], 0
cmp byte [esi + 0x60], 0
je 0x552fdd
mov eax, dword [0x5dd470]
test eax, eax
je 0x552fdd
call eax
cmp byte [esi + 0x61], 0
mov byte [esi + 0x60], 0
je 0x552feb
mov byte [esi + 0x61], 0
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x553005
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi]
push ecx
call edi
add esi, 0x1c
cmp esi, dword [ebx + 4]
jne 0x552ff8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10