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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aff95
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 0x558f0e
mov ecx, esi
call fcn.0058b820
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x14]
call fcn.0058b820
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 0x558f46
cmp ebx, 0x10e5
jne 0x558f46
mov ebx, 0x10e6
mov byte [ebp - 0x19], 0
cmp ecx, esi
je 0x558f66
mov eax, 0x128e
cmp word [ecx + 0x18], ax
jne 0x558f62
add ecx, 0x1c
cmp ecx, esi
jne 0x558f53
jmp 0x558f66
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 0x558f87
mov ecx, 1
mov eax, dword [0x621a24]
test eax, eax
je 0x558f9f
push dword [ebp + 0x18]
push dword [ebp - 0x18]
push dword [ecx*4 + 0x621ebc]
call eax
cmp byte [0x621f42], 0
jne 0x558fb8
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 0x5590f0
cmp byte [ebp - 0x19], 0
jne 0x5590f0
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 0x559016
push str.invalid_vector_T__subscript
call fcn.00546d68
mov edi, dword [ebp + 0x14]
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x5590da
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 0x559051
push str.invalid_vector_T__subscript
call fcn.00546d68
push 0
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x5590da
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x5590c1
sub eax, 2
je 0x5590a8
sub eax, 0x6b
je 0x55908f
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, 0x5562b0
test eax, eax
je 0x559144
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.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x559160
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 0x559197
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.00528e72
add esp, 8
test eax, eax
js 0x5596b3
cmp eax, dword [edi - 8]
jg 0x5596b3
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 0x5591f8
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.00528e72
add esp, 8
test eax, eax
js 0x5596b3
cmp eax, dword [edi - 8]
jg 0x5596b3
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 0x559251
cmp ecx, dword [esi]
jne 0x559251
mov ebx, esi
mov ecx, 1
lock xadd dword [eax], ecx
inc ecx
jmp 0x55928e
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x559265
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.00528d25
add esp, 0x10
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x54]
call fcn.0058bc90
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x5592f3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x5592e4
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x5592e4
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 0x5592dc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edi, [ebx + 0x10]
mov dword [ebp + 0x18], edi
jmp 0x5592f3
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 0x559314
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 0x55935b
mov edx, dword [eax + 8]
dec edx
neg edx
sbb dl, dl
and bl, dl
mov edx, dword [eax + 0x14]
cmp edx, 0x4b
jl 0x559350
cmp edx, 0x258
jg 0x559350
cmp dword [eax + 0xc], 0x27d8
jg 0x559350
cmp dword [eax + 0x10], 0x27d8
jle 0x559354
xor bl, bl
xor bh, bh
add eax, 0x1c
cmp eax, ecx
jne 0x559324
push dword [ebp + 0xc]
push 1
push ecx
push 0
call fcn.0055e990
test al, al
jne 0x559381
push 0x60baf4
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0xada
push eax
call fcn.0052d7c1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0x28]
movzx eax, ax
mov ecx, 0x1181
cmp ax, cx
jne 0x5593aa
test bl, bl
jne 0x5593aa
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 0x5593d0
test bh, bh
jne 0x5593d0
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 0x5593fc
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
push 0x60baf4
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xaee
push eax
call fcn.0052d7c1
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
mov byte [ebp - 0x11], 1
call dword [0x6219c8]
test al, al
jne 0x559425
push 0x60baf4
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0xafa
push eax
call fcn.0052d7c1
mov eax, dword [ebp + 0x10]
mov ebx, dword [sym.imp.SUCMLIB.dll_Ordinal_72]
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x5595b0
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.0x559479.2
movzx eax, byte [eax + 0x5597d0]
jmp dword [eax*4 + 0x5597b4]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x48], 1
jmp 0x5594d0
mov dword [ebp - 0x44], 1
jmp 0x5594c9
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x48], 0x10
jmp 0x5594d0
mov dword [ebp - 0x44], 4
jmp 0x5594c9
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x48], 0x10
jmp 0x5594d0
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 0x559520
call dword [sym.imp.SUCMLIB.dll_Ordinal_76]
push 0x60baf4
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0xb1b
push eax
call fcn.0052d7c1
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 0x55957b
mov eax, dword [0x621f28]
test eax, eax
je 0x55957b
mov eax, dword [eax]
mov ecx, dword [ecx + 0x58]
call dword [eax + 0xac]
movzx eax, ax
mov ecx, 0xff0
cmp ax, cx
jne 0x55957b
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 0x5595a3
call ebx
push 0x60baf4
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0xb2e
push eax
call fcn.0052d7c1
call ebx
mov eax, dword [ebp + 0x10]
add esi, 0x1c
jmp 0x559430
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 0x55963a
push 1
lea eax, [ebp - 0x94]
push eax
call dword [0x621978]
test al, al
je 0x559621
mov al, byte [ebp - 0x8c]
jmp 0x559602
push 0x60baf4
lea eax, [ebp - 0x68]
mov byte [ebp - 0x11], 0
push eax
mov dword [ebp - 0x68], 0xb45
call fcn.0052d7c1
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x55968f
push eax
push dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x55968f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x559688
sub eax, 2
je 0x55967f
sub eax, 0x6b
je 0x559676
mov dword [ebp - 0x24], 0x9ca04
jmp 0x55968f
mov dword [ebp - 0x24], 0x9e701
jmp 0x55968f
mov dword [ebp - 0x24], 0x9f405
jmp 0x55968f
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 0x559729
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x559729
push 0x80070057
call fcn.00402740
cmp byte [ebp - 0x11], 0
je 0x5596f8
call dword [0x621988]
lea ecx, [ebp - 0xc4]
call fcn.004038d0
cmp byte [ebp - 0xbc], 0
jne 0x5596f8
lea ecx, [ecx]
push 1
lea eax, [ebp - 0xc4]
push eax
call dword [0x621978]
cmp byte [ebp - 0xbc], 0
je 0x5596e0
mov edi, dword [ebp - 0x28]
cmp dword [edi + 0x44], 0
lea esi, [edi + 0x44]
jne 0x55970b
push esi
call dword [0x62196c]
mov eax, dword [esi]
mov dword [ebp + 0x14], eax
mov dword [edi + 0x48], eax
mov eax, 0x559723
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 0x55975f
cmp edx, 2
je 0x559752
mov al, byte [ebx + 0x70]
cmp al, 0xc
je 0x559752
cmp al, 0xd
je 0x559752
mov ecx, dword [ebp - 0x58]
call fcn.00547e70
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], 0
cmp byte [ebx + 0x5c], 0
je 0x559770
mov eax, dword [0x621990]
test eax, eax
je 0x559770
call eax
cmp byte [ebx + 0x5d], 0
mov byte [ebx + 0x5c], 0
je 0x55977e
mov byte [ebx + 0x5d], 0
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x55979c
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 0x559790
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