Function at 0x10173c9
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x102cd74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
test esi, esi
je 0x1017776
test edi, edi
je 0x1017776
test eax, eax
je 0x1017776
call fcn.0100a460
call fcn.010247a1
call fcn.0100abc1
call fcn.0100ad79
movzx ebx, ax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x420]
mov dword [ebp - 0x444], 1
call fcn.01023b3b
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x420]
call fcn.010227a6
test eax, eax
jne 0x101775d
cmp dword [0x102dce8], 0x411
je 0x10174e6
cmp dword [ebp + 0x20], eax
jne 0x10174e6
push eax
push esi
call fcn.010116a2
test eax, eax
jne 0x101775d
push edi
call fcn.01025566
test eax, eax
je 0x10174a4
push edi
call fcn.0100af6e
test eax, eax
jne 0x101775d
push edi
call fcn.01025566
test eax, eax
jne 0x101775d
mov esi, 0x411
xor edi, edi
cmp dword [0x102dce8], esi
je 0x10174f0
cmp dword [ebp + 0x20], edi
jne 0x10174f0
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.010112e6
jmp 0x1017511
push 0
push esi
call fcn.01024969
jmp 0x1017476
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.01024c2f
test eax, eax
jne 0x101775d
mov ecx, dword [ebp - 0x434]
lea eax, [ecx + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebp - 0x430]
mov dword [0x102e7f4], eax
movzx eax, bx
add eax, 0xffff2001
cmp dword [ebp - 0x424], eax
jle 0x101754d
mov dword [ebp - 0x424], eax
push dword [ebp + 0x14]
push ecx
call fcn.010171c4
cmp dword [0x102dce8], esi
je 0x101756f
cmp dword [ebp + 0x20], edi
jne 0x101756f
push 0x102e7f8
call fcn.0101141c
jmp 0x101757c
push dword [ebp + 0x20]
push 0x102e7f8
call fcn.01024eb8
cmp eax, edi
jne 0x101775d
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x420]
call fcn.01022558
test eax, eax
jne 0x101775d
lea eax, [ebp - 0x41c]
push eax
call fcn.010221a7
test eax, eax
jne 0x101775d
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x101775d
push edi
push ebx
call fcn.0102294c
xor esi, esi
cmp dword [ebp - 0x424], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x438], edi
jle 0x101769a
mov eax, dword [0x102e7f8]
cmp dword [eax + esi*4], edi
jl 0x1017639
inc dword [ebp - 0x428]
mov eax, dword [ebp - 0x42c]
cmp dword [ebp - 0x428], eax
jge 0x1017639
push eax
push dword [ebp - 0x428]
call fcn.01015f98
test eax, eax
jne 0x1017639
mov dword [ebp - 0x438], 1
cmp dword [ebp - 0x438], edi
jne 0x101767b
mov eax, dword [0x102e7f8]
mov eax, dword [eax + esi*4]
cmp eax, edi
jl 0x101767b
push dword [ebp + 0x20]
lea ecx, [ebp - 0x458]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x43c]
push ecx
push eax
lea ecx, [ebp - 0x448]
call fcn.01016f3e
cmp eax, edi
jl 0x1017756
jg 0x101769a
jmp 0x101768d
lea eax, [esi + 2]
push eax
push ebx
call fcn.0102294c
test eax, eax
jne 0x1017756
inc esi
cmp esi, dword [ebp - 0x424]
jl 0x1017601
push dword [ebp - 0x42c]
push dword [ebp - 0x42c]
call fcn.01015f98
add esi, 2
push esi
push ebx
call fcn.01022af1
test eax, eax
jne 0x1017756
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0102232b
test eax, eax
jne 0x1017756
cmp dword [0x102dce8], 0x411
je 0x101778a
cmp dword [ebp + 0x20], edi
jne 0x101778a
call fcn.01011287
test eax, eax
jne 0x1017756
call fcn.01024f5f
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x420]
call fcn.01023b3b
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x1017756
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x420]
call esi
test eax, eax
je 0x1017756
push dword [ebp - 0x420]
lea eax, [ebp - 0x41c]
push eax
call esi
test eax, eax
je 0x1017756
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
jne 0x1017794
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0102232b
call fcn.01024aa2
call fcn.01024f5f
call fcn.01024664
call fcn.01016de1
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01026cc5
leave
ret 0x1c
call fcn.01024aa2
jmp 0x10176ef
call fcn.01024664
call fcn.01016de1
xor eax, eax
jmp 0x1017779