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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ada05
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x614040]
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 - 0x58], 0
mov dword [ebp - 0x28], 0x61fed0
mov ecx, dword [edi + 4]
mov esi, dword [edi]
sub ecx, esi
imul ecx
mov dword [ebp - 0x24], 0
add edx, ecx
mov byte [ebp - 0x11], 0
sar edx, 4
mov eax, edx
mov dword [ebp - 0x20], 0x10e0
shr eax, 0x1f
add eax, edx
je 0x558afe
mov ecx, esi
call fcn.00589520
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x14]
call fcn.00589520
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 0x558b36
cmp ebx, 0x10e5
jne 0x558b36
mov ebx, 0x10e6
mov byte [ebp - 0x19], 0
cmp ecx, esi
je 0x558b56
mov eax, 0x128e
cmp word [ecx + 0x18], ax
jne 0x558b52
add ecx, 0x1c
cmp ecx, esi
jne 0x558b43
jmp 0x558b56
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.SUCMLIB.dll_Ordinal_80]
xor ecx, ecx
cmp dword [ebp + 0xc], 0x9fbf1
jne 0x558b77
mov ecx, 1
mov eax, dword [0x61fa24]
test eax, eax
je 0x558b8f
push dword [ebp + 0x18]
push dword [ebp - 0x18]
push dword [ecx*4 + 0x61feb8]
call eax
cmp byte [0x61ff42], 0
jne 0x558ba8
mov ecx, dword [ebp - 0x18]
push 0xff1
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, dword [ebp - 0x18]
push dword [0x61ff44]
mov eax, dword [ecx]
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x18]
push dword [0x61ff48]
mov eax, dword [ecx]
call dword [eax + 0xb8]
cmp dword [ebp - 0x20], ebx
jne 0x558ce0
cmp byte [ebp - 0x19], 0
jne 0x558ce0
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 0x558c06
push str.invalid_vector_T__subscript
call fcn.00546d3a
mov edi, dword [ebp + 0x14]
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x558cca
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 0x558c41
push str.invalid_vector_T__subscript
call fcn.00546d3a
push 0
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x558cca
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x558cb1
sub eax, 2
je 0x558c98
sub eax, 0x6b
je 0x558c7f
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 eax, 0x555ea0
test eax, eax
je 0x558d34
mov ecx, 9
mov dword [ebp - 0x38], 0
lea esi, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov edi, 0x615474
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xb
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
rep movsd dword es:[edi], dword [esi]
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x558d50
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 0x18], edi
mov byte [ebp - 4], 1
mov ebx, 1
mov eax, dword [edi - 8]
mov ecx, ebx
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x558d87
push 0x104
lea ecx, [ebp + 0x18]
call fcn.00402c20
mov edi, dword [ebp + 0x18]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [edi - 8]
push edi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x5592a3
cmp eax, dword [edi - 8]
jg 0x5592a3
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [edi - 8]
mov edx, ebx
sub edx, dword [edi - 4]
sub ecx, 0x104
or ecx, edx
mov esi, eax
jge 0x558de8
push 0x104
lea ecx, [ebp + 0x18]
call fcn.00402c20
mov edi, dword [ebp + 0x18]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [edi - 8]
push edi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x5592a3
cmp eax, dword [edi - 8]
jg 0x5592a3
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea esi, [edi - 0x10]
push ecx
mov ecx, dword [esi]
mov dword [ebp - 0x20], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x558e41
cmp ecx, dword [esi]
jne 0x558e41
mov ebx, esi
mov ecx, 1
lock xadd dword [eax], ecx
inc ecx
jmp 0x558e7e
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x558e55
call fcn.00402c80
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.00528cf5
add esp, 0x10
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x54]
call fcn.00589950
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x558ee3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x558ed4
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x558ed4
push edx
call fcn.00403660
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x558ecc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edi, [ebx + 0x10]
mov dword [ebp + 0x18], edi
jmp 0x558ee3
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp + 0x18]
call fcn.004035a0
mov edi, dword [ebp + 0x18]
mov byte [ebp - 4], 1
or ecx, 0xffffffff
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x558f04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x10]
mov bl, 1
mov bh, bl
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x558f4b
mov edx, dword [eax + 8]
dec edx
neg edx
sbb dl, dl
and bl, dl
mov edx, dword [eax + 0x14]
cmp edx, 0x4b
jl 0x558f40
cmp edx, 0x258
jg 0x558f40
cmp dword [eax + 0xc], 0x27d8
jg 0x558f40
cmp dword [eax + 0x10], 0x27d8
jle 0x558f44
xor bl, bl
xor bh, bh
add eax, 0x1c
cmp eax, ecx
jne 0x558f14
push dword [ebp + 0xc]
push 1
push ecx
push 0
call fcn.0055e5c0
test al, al
jne 0x558f71
push 0x6098b4
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0xace
push eax
call fcn.0052d791
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0x28]
movzx eax, ax
mov ecx, 0x1181
cmp ax, cx
jne 0x558f9a
test bl, bl
jne 0x558f9a
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 0x558fc0
test bh, bh
jne 0x558fc0
mov ecx, dword [ebp - 0x18]
push 0xff1
mov eax, dword [ecx]
call dword [eax + 0x70]
push dword [ebp - 0x18]
call dword [0x61f99c]
test al, al
lea eax, [ebp - 0x18]
push eax
jne 0x558fec
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
push 0x6098b4
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xae2
push eax
call fcn.0052d791
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
mov byte [ebp - 0x11], 1
call dword [0x61f9c8]
test al, al
jne 0x559015
push 0x6098b4
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0xaee
push eax
call fcn.0052d791
mov eax, dword [ebp + 0x10]
mov ebx, dword [sym.imp.SUCMLIB.dll_Ordinal_72]
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x5591a0
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 [esi]
mov eax, dword [ecx]
call dword [eax + 0x1c]
fild dword [esi + 0x14]
fstp qword [ebp - 0xa0]
fld qword [ebp - 0xa0]
mov eax, dword [esi + 4]
dec eax
fst qword [ebp - 0x40]
fstp qword [ebp - 0x38]
cmp eax, 0x2f
ja case.0x559069.2
movzx eax, byte [eax + 0x5593c0]
jmp dword [eax*4 + 0x5593a4]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x48], 1
jmp 0x5590c0
mov dword [ebp - 0x44], 1
jmp 0x5590b9
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x48], 0x10
jmp 0x5590c0
mov dword [ebp - 0x44], 4
jmp 0x5590b9
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x48], 0x10
jmp 0x5590c0
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x48], 8
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x50]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
push edi
mov eax, dword [ecx]
call dword [eax + 0x20]
push dword [ebp + 0xc]
call dword [0x61f98c]
test al, al
lea eax, [ebp + 0xc]
push eax
jne 0x559110
call dword [sym.imp.SUCMLIB.dll_Ordinal_76]
push 0x6098b4
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0xb0f
push eax
call fcn.0052d791
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 [esi + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x4c], 0
je 0x55916b
mov eax, dword [0x61ff28]
test eax, eax
je 0x55916b
mov eax, dword [eax]
mov ecx, dword [ecx + 0x58]
call dword [eax + 0xac]
movzx eax, ax
mov ecx, 0xff0
cmp ax, cx
jne 0x55916b
mov ecx, dword [ebp - 0x20]
push 0xff0
mov eax, dword [ecx]
call dword [eax + 0x28]
push dword [ebp - 0x20]
call dword [0x61f984]
test al, al
lea eax, [ebp - 0x20]
push eax
jne 0x559193
call ebx
push 0x6098b4
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0xb22
push eax
call fcn.0052d791
call ebx
mov eax, dword [ebp + 0x10]
add esi, 0x1c
jmp 0x559020
call dword [0x61f94c]
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
test al, al
jne 0x55922a
push 1
lea eax, [ebp - 0x94]
push eax
call dword [0x61f978]
test al, al
je 0x559211
mov al, byte [ebp - 0x8c]
jmp 0x5591f2
push 0x6098b4
lea eax, [ebp - 0x68]
mov byte [ebp - 0x11], 0
push eax
mov dword [ebp - 0x68], 0xb39
call fcn.0052d791
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x55927f
push eax
push dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x55927f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x559278
sub eax, 2
je 0x55926f
sub eax, 0x6b
je 0x559266
mov dword [ebp - 0x24], 0x9ca04
jmp 0x55927f
mov dword [ebp - 0x24], 0x9e701
jmp 0x55927f
mov dword [ebp - 0x24], 0x9f405
jmp 0x55927f
mov dword [ebp - 0x24], 0x97204
add edi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x559319
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x559319
push 0x80070057
call fcn.00402740
cmp byte [ebp - 0x11], 0
je 0x5592e8
call dword [0x61f988]
lea ecx, [ebp - 0xc4]
call fcn.004038d0
cmp byte [ebp - 0xbc], 0
jne 0x5592e8
lea ecx, [ecx]
push 1
lea eax, [ebp - 0xc4]
push eax
call dword [0x61f978]
cmp byte [ebp - 0xbc], 0
je 0x5592d0
mov edi, dword [ebp - 0x28]
cmp dword [edi + 0x44], 0
lea esi, [edi + 0x44]
jne 0x5592fb
push esi
call dword [0x61f96c]
mov eax, dword [esi]
mov dword [ebp + 0x14], eax
mov dword [edi + 0x48], eax
mov eax, 0x559313
mov dword [esi], 0
mov byte [edi + 0x72], 0
ret
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebx + 0x44]
test edx, edx
je 0x55934f
cmp edx, 2
je 0x559342
mov al, byte [ebx + 0x70]
cmp al, 0xc
je 0x559342
cmp al, 0xd
je 0x559342
mov ecx, dword [ebp - 0x58]
call fcn.00547e20
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], 0
cmp byte [ebx + 0x5c], 0
je 0x559360
mov eax, dword [0x61f990]
test eax, eax
je 0x559360
call eax
cmp byte [ebx + 0x5d], 0
mov byte [ebx + 0x5c], 0
je 0x55936e
mov byte [ebx + 0x5d], 0
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x55938c
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, edi
push dword [esi]
call edi
add esi, 0x1c
cmp esi, dword [ebx + 4]
jne 0x559380
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