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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afbc5
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x616040]
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], 0x621ed0
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 0x558ede
mov ecx, esi
call fcn.0058b550
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x14]
call fcn.0058b550
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 0x558f16
cmp ebx, 0x10e5
jne 0x558f16
mov ebx, 0x10e6
mov byte [ebp - 0x19], 0
cmp ecx, esi
je 0x558f36
mov eax, 0x128e
cmp word [ecx + 0x18], ax
jne 0x558f32
add ecx, 0x1c
cmp ecx, esi
jne 0x558f23
jmp 0x558f36
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 0x558f57
mov ecx, 1
mov eax, dword [0x621a24]
test eax, eax
je 0x558f6f
push dword [ebp + 0x18]
push dword [ebp - 0x18]
push dword [ecx*4 + 0x621ebc]
call eax
cmp byte [0x621f42], 0
jne 0x558f88
mov ecx, dword [ebp - 0x18]
push 0xff1
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, dword [ebp - 0x18]
push dword [0x621f44]
mov eax, dword [ecx]
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x18]
push dword [0x621f48]
mov eax, dword [ecx]
call dword [eax + 0xb8]
cmp dword [ebp - 0x20], ebx
jne 0x5590c0
cmp byte [ebp - 0x19], 0
jne 0x5590c0
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 0x558fe6
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 0x5590aa
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 0x559021
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 0x5590aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x559091
sub eax, 2
je 0x559078
sub eax, 0x6b
je 0x55905f
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, 0x556280
test eax, eax
je 0x559114
mov ecx, 9
mov dword [ebp - 0x38], 0
lea esi, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov edi, 0x617474
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.00414e1f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x559130
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 0x559167
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 0x559683
cmp eax, dword [edi - 8]
jg 0x559683
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 0x5591c8
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 0x559683
cmp eax, dword [edi - 8]
jg 0x559683
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 0x559221
cmp ecx, dword [esi]
jne 0x559221
mov ebx, esi
mov ecx, 1
lock xadd dword [eax], ecx
inc ecx
jmp 0x55925e
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x559235
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.0058b990
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x5592c3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x5592b4
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x5592b4
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 0x5592ac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edi, [ebx + 0x10]
mov dword [ebp + 0x18], edi
jmp 0x5592c3
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 0x5592e4
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 0x55932b
mov edx, dword [eax + 8]
dec edx
neg edx
sbb dl, dl
and bl, dl
mov edx, dword [eax + 0x14]
cmp edx, 0x4b
jl 0x559320
cmp edx, 0x258
jg 0x559320
cmp dword [eax + 0xc], 0x27d8
jg 0x559320
cmp dword [eax + 0x10], 0x27d8
jle 0x559324
xor bl, bl
xor bh, bh
add eax, 0x1c
cmp eax, ecx
jne 0x5592f4
push dword [ebp + 0xc]
push 1
push ecx
push 0
call fcn.0055e9d0
test al, al
jne 0x559351
push 0x60bae4
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0xad7
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 0x55937a
test bl, bl
jne 0x55937a
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 0x5593a0
test bh, bh
jne 0x5593a0
mov ecx, dword [ebp - 0x18]
push 0xff1
mov eax, dword [ecx]
call dword [eax + 0x70]
push dword [ebp - 0x18]
call dword [0x62199c]
test al, al
lea eax, [ebp - 0x18]
push eax
jne 0x5593cc
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
push 0x60bae4
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xaeb
push eax
call fcn.0052d791
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
mov byte [ebp - 0x11], 1
call dword [0x6219c8]
test al, al
jne 0x5593f5
push 0x60bae4
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0xaf7
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 0x559580
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.0x559449.2
movzx eax, byte [eax + 0x5597a0]
jmp dword [eax*4 + 0x559784]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x48], 1
jmp 0x5594a0
mov dword [ebp - 0x44], 1
jmp 0x559499
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x48], 0x10
jmp 0x5594a0
mov dword [ebp - 0x44], 4
jmp 0x559499
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x48], 0x10
jmp 0x5594a0
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 [0x62198c]
test al, al
lea eax, [ebp + 0xc]
push eax
jne 0x5594f0
call dword [sym.imp.SUCMLIB.dll_Ordinal_76]
push 0x60bae4
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0xb18
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 0x55954b
mov eax, dword [0x621f28]
test eax, eax
je 0x55954b
mov eax, dword [eax]
mov ecx, dword [ecx + 0x58]
call dword [eax + 0xac]
movzx eax, ax
mov ecx, 0xff0
cmp ax, cx
jne 0x55954b
mov ecx, dword [ebp - 0x20]
push 0xff0
mov eax, dword [ecx]
call dword [eax + 0x28]
push dword [ebp - 0x20]
call dword [0x621984]
test al, al
lea eax, [ebp - 0x20]
push eax
jne 0x559573
call ebx
push 0x60bae4
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0xb2b
push eax
call fcn.0052d791
call ebx
mov eax, dword [ebp + 0x10]
add esi, 0x1c
jmp 0x559400
call dword [0x62194c]
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 0x55960a
push 1
lea eax, [ebp - 0x94]
push eax
call dword [0x621978]
test al, al
je 0x5595f1
mov al, byte [ebp - 0x8c]
jmp 0x5595d2
push 0x60bae4
lea eax, [ebp - 0x68]
mov byte [ebp - 0x11], 0
push eax
mov dword [ebp - 0x68], 0xb42
call fcn.0052d791
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x55965f
push eax
push dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x55965f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x559658
sub eax, 2
je 0x55964f
sub eax, 0x6b
je 0x559646
mov dword [ebp - 0x24], 0x9ca04
jmp 0x55965f
mov dword [ebp - 0x24], 0x9e701
jmp 0x55965f
mov dword [ebp - 0x24], 0x9f405
jmp 0x55965f
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 0x5596f9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5596f9
push 0x80070057
call fcn.00402740
cmp byte [ebp - 0x11], 0
je 0x5596c8
call dword [0x621988]
lea ecx, [ebp - 0xc4]
call fcn.004038d0
cmp byte [ebp - 0xbc], 0
jne 0x5596c8
lea ecx, [ecx]
push 1
lea eax, [ebp - 0xc4]
push eax
call dword [0x621978]
cmp byte [ebp - 0xbc], 0
je 0x5596b0
mov edi, dword [ebp - 0x28]
cmp dword [edi + 0x44], 0
lea esi, [edi + 0x44]
jne 0x5596db
push esi
call dword [0x62196c]
mov eax, dword [esi]
mov dword [ebp + 0x14], eax
mov dword [edi + 0x48], eax
mov eax, 0x5596f3
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 0x55972f
cmp edx, 2
je 0x559722
mov al, byte [ebx + 0x70]
cmp al, 0xc
je 0x559722
cmp al, 0xd
je 0x559722
mov ecx, dword [ebp - 0x58]
call fcn.00547e40
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], 0
cmp byte [ebx + 0x5c], 0
je 0x559740
mov eax, dword [0x621990]
test eax, eax
je 0x559740
call eax
cmp byte [ebx + 0x5d], 0
mov byte [ebx + 0x5c], 0
je 0x55974e
mov byte [ebx + 0x5d], 0
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x55976c
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 0x559760
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