Function at 0x550170
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a7a1
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
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 ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x24], 0x5dd9b8
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x15], 0
mov dword [ebp - 4], edi
call fcn.0040c84f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x5501d1
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x550208
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.004019b0
mov esi, dword [ebp - 0x1c]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ff818
add esp, 8
cmp eax, edi
jl 0x550624
cmp eax, dword [esi - 8]
jg 0x550624
mov edx, dword [ebp + 0x10]
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [edx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x55026d
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.004019b0
mov esi, dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ff818
add esp, 8
test eax, eax
js 0x550624
cmp eax, dword [esi - 8]
jg 0x550624
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], cx
lea eax, [esi - 0x10]
mov dword [ebp - 0x28], esp
mov edi, esp
push eax
call fcn.00401a10
lea edx, [ebp - 0x28]
add esp, 4
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.00531490
add esp, 8
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004015b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5502ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0
call fcn.0054edf0
test al, al
jne 0x550315
push 0x5c77e8
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0x64], 0xe45
call fcn.005039bf
mov esi, dword [ebx]
mov ecx, dword [ebx + 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 edi, 0x10e0
je 0x550341
push esi
call fcn.005300e0
add esp, 4
mov edi, eax
xor eax, eax
cmp dword [ebp + 8], 0x9fbf1
jne 0x550351
mov eax, 1
mov ecx, dword [0x5dd530]
test ecx, ecx
jne 0x55035f
xor eax, eax
jmp 0x55036e
mov edx, dword [eax*4 + 0x5dd9a0]
push 0x1001f
push edx
call ecx
push eax
push edi
call dword [0x5dd4c0]
test al, al
jne 0x55038f
push 0x5c77e8
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], 0xe56
call fcn.005039bf
call dword [0x5dd4c4]
test al, al
jne 0x5503ae
push 0x5c77e8
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], 0xe5f
call fcn.005039bf
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov ebx, dword [sym.imp.SUCMLIB.dll_Ordinal_73]
mov edi, 8
mov edi, edi
mov eax, dword [ebp + 0xc]
cmp esi, dword [eax + 4]
je 0x5504d5
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], 0
call ebx
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 - 0x3c]
fstp qword [ebp - 0x34]
cmp eax, 0x2f
ja case.0x5503ff.2
movzx ecx, byte [eax + 0x5506b4]
jmp dword [ecx*4 + 0x550698]
mov eax, 1
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
jmp 0x55044f
mov dword [ebp - 0x40], 1
jmp 0x55044c
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x44], 0x10
jmp 0x55044f
mov dword [ebp - 0x40], 4
jmp 0x55044c
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x44], 0x10
jmp 0x55044f
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x44], edi
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x4c]
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 [0x5dd4cc]
test al, al
jne 0x5504a4
lea edx, [ebp + 8]
push edx
call dword [sym.imp.SUCMLIB.dll_Ordinal_76]
push 0x5c77e8
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0xe80
call fcn.005039bf
lea ecx, [ebp + 8]
push ecx
call dword [sym.imp.SUCMLIB.dll_Ordinal_76]
call dword [0x5dd4d0]
test al, al
jne 0x5504cd
push 0x5c77e8
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x68], 0xe8a
call fcn.005039bf
add esi, 0x1c
jmp 0x5503c0
call dword [0x5dd4c8]
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], al
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
cmp byte [ebp - 0x84], 0
jne 0x550539
push 1
lea eax, [ebp - 0x8c]
push eax
call dword [0x5dd49c]
test al, al
jne 0x550505
push 0x5c77e8
lea ecx, [ebp - 0x54]
push ecx
mov byte [ebp - 0x15], al
mov dword [ebp - 0x54], 0xea0
call fcn.005039bf
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov esi, dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x550594
mov eax, dword [edi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x550594
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x55058d
sub eax, 2
je 0x550584
sub eax, 0x6b
je 0x55057b
mov dword [ebp - 0x20], 0x9ca04
jmp 0x550594
mov dword [ebp - 0x20], 0x9e701
jmp 0x550594
mov dword [ebp - 0x20], 0x9f405
jmp 0x550594
mov dword [ebp - 0x20], 0x97204
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5505b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x5505ee
cmp ecx, 2
je 0x5505e1
mov al, byte [esi + 0x74]
cmp al, 0xc
je 0x5505e1
cmp al, 0xd
je 0x5505e1
mov edx, dword [ebp - 0x58]
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 0x5505ff
mov eax, dword [0x5dd470]
test eax, eax
je 0x5505ff
call eax
cmp byte [esi + 0x61], 0
mov byte [esi + 0x60], 0
je 0x55060d
mov byte [esi + 0x61], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.004010a0
cmp byte [ebp - 0x15], 0
je 0x550668
call dword [0x5dd4b8]
lea eax, [ebp - 0xb0]
call fcn.00402ba0
cmp byte [ebp - 0xa8], 0
jne 0x550668
mov edi, edi
push 1
lea ecx, [ebp - 0xb0]
push ecx
call dword [0x5dd49c]
cmp byte [ebp - 0xa8], 0
je 0x550650
mov edi, dword [ebp - 0x24]
cmp dword [edi + 0x48], 0
lea esi, [edi + 0x48]
jne 0x55067b
push esi
call dword [0x5dd4a0]
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov dword [edi + 0x4c], eax
mov dword [esi], 0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x5505bb
ret