Function at 0x1015c02
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x1029fe8]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
call fcn.010095eb
call fcn.01022924
call fcn.01009d42
call fcn.01009f05
mov dword [ebp - 0x444], 1
mov ebx, eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x420]
call fcn.01020320
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x420]
call fcn.01020cb6
test eax, eax
jne 0x1015f7d
cmp dword [0x102af68], 0x411
je 0x1015d03
cmp dword [ebp + 0x20], eax
jne 0x1015d03
push eax
push esi
call fcn.01010233
test eax, eax
jne 0x1015f7d
push edi
call fcn.01023077
test eax, eax
je 0x1015cc2
push edi
call fcn.0100a122
test eax, eax
jne 0x1015f7d
push edi
call fcn.01023077
test eax, eax
jne 0x1015f7d
xor edi, edi
cmp dword [0x102af68], 0x411
je 0x1015d0d
cmp dword [ebp + 0x20], edi
jne 0x1015d0d
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.0101039e
jmp 0x1015d2e
push 0
push esi
call fcn.01022aec
jmp 0x1015c94
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.01022d9a
test eax, eax
jne 0x1015f7d
mov ecx, dword [ebp - 0x434]
lea eax, [ecx + 7]
cdq
push 8
pop esi
idiv esi
imul eax, dword [ebp - 0x430]
mov dword [0x102be84], eax
movzx eax, bx
add eax, 0xffff2001
cmp dword [ebp - 0x424], eax
jle 0x1015d67
mov dword [ebp - 0x424], eax
push dword [ebp + 0x14]
mov eax, ecx
call fcn.010156c6
cmp dword [0x102af68], 0x411
je 0x1015d8e
cmp dword [ebp + 0x20], edi
jne 0x1015d8e
push 0x102be88
call fcn.01010616
jmp 0x1015d9b
push dword [ebp + 0x20]
push 0x102be88
call fcn.01022fdd
cmp eax, edi
jne 0x1015f7d
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x420]
call fcn.01020a9f
test eax, eax
jne 0x1015f7d
lea eax, [ebp - 0x41c]
push eax
call fcn.0102072e
test eax, eax
jne 0x1015f7d
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 0x1015f7d
push edi
push ebx
call fcn.01020e49
xor esi, esi
cmp dword [ebp - 0x424], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x438], edi
jle 0x1015eba
mov eax, dword [0x102be88]
cmp dword [eax + esi*4], edi
jl 0x1015e58
inc dword [ebp - 0x428]
mov eax, dword [ebp - 0x42c]
cmp dword [ebp - 0x428], eax
jge 0x1015e58
push eax
push dword [ebp - 0x428]
call fcn.01014923
test eax, eax
jne 0x1015e58
mov dword [ebp - 0x438], 1
cmp dword [ebp - 0x438], edi
jne 0x1015e9b
mov eax, dword [0x102be88]
mov eax, dword [eax + esi*4]
cmp eax, edi
jl 0x1015e9b
push dword [ebp + 0x20]
lea ecx, [ebp - 0x448]
push ecx
push dword [ebp + 0x18]
lea ecx, [ebp - 0x458]
push dword [ebp + 0x14]
push dword [ebp - 0x43c]
push ecx
push eax
call fcn.01015991
cmp eax, edi
jl 0x1015f76
jg 0x1015eba
jmp 0x1015ead
lea eax, [esi + 2]
push eax
push ebx
call fcn.01020e49
test eax, eax
jne 0x1015f76
inc esi
cmp esi, dword [ebp - 0x424]
jl 0x1015e20
push dword [ebp - 0x42c]
push dword [ebp - 0x42c]
call fcn.01014923
add esi, 2
push esi
push ebx
call fcn.01020fef
test eax, eax
jne 0x1015f76
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0102089c
test eax, eax
jne 0x1015f76
cmp dword [0x102af68], 0x411
je 0x1015f91
cmp dword [ebp + 0x20], edi
jne 0x1015f91
call fcn.0101033f
test eax, eax
jne 0x1015f76
call fcn.01023124
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x420]
call fcn.01020320
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x1015f76
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x420]
call esi
test eax, eax
je 0x1015f76
push dword [ebp - 0x420]
lea eax, [ebp - 0x41c]
push eax
call esi
test eax, eax
je 0x1015f76
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
jne 0x1015f9b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0102089c
call fcn.01022c1f
call fcn.01023124
or esi, 0xffffffff
jmp 0x1015f9d
call fcn.01022c1f
jmp 0x1015f0f
xor esi, esi
call fcn.010227e9
call fcn.01015836
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01023881
leave
ret 0x1c