Function at 0x10031400
Capabilities:
Delete file
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5150
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x70
mov eax, dword [0x10110040]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea esi, [ecx + 0x244]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x68], esi
call fcn.1008b334
add esp, 4
test eax, eax
jne 0x1003179b
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x100317a2
mov byte [ebp - 4], 1
lea eax, [ebx + 0xc]
cmp dword [ebx + 0x20], 0xf
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x4c]
cmova eax, dword [ebx + 0xc]
mov dword [ebp - 0x5c], eax
lea eax, [ebx + 8]
push eax
push 9
push str...txt
call fcn.100349d0
add esp, 0xc
cmp dword [ebp - 0x38], 0xf
lea eax, [ebp - 0x4c]
cmova eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 2
xorps xmm0, xmm0
mov ecx, 0xf
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 6
mov edi, dword [ebx + 8]
mov eax, edi
mov dword [ebp - 0x5c], edi
test eax, eax
je 0x100316b9
mov byte [ebp - 4], 7
lea eax, [ebx + 0xc]
cmp dword [ebx + 0x20], 0xf
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x84]
cmova eax, dword [ebx + 0xc]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push eax
push 9
push str...txt
call fcn.100349d0
add esp, 0xc
lea ecx, [ebp - 0x4c]
push eax
call fcn.10008410
mov ecx, dword [ebp - 0x70]
cmp ecx, 0xf
jbe 0x10031551
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10031547
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100317ad
push ecx
push edx
call fcn.100899b0
add esp, 8
cmp edi, 1
jne 0x1003156f
cmp dword [ebx + 0x20], 0xf
lea eax, [ebx + 0xc]
push dword [ebx + 0x1c]
cmova eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x34]
push eax
call fcn.10020720
jmp 0x100315df
cmp dword [ebx + 0x20], 0xf
lea eax, [edi - 1]
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x64]
lea eax, [ebx + 0xc]
cmova eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x60]
push eax
push 9
push str...txt
call fcn.100349d0
add esp, 0xc
lea ecx, [ebp - 0x34]
push eax
call fcn.10008410
mov ecx, dword [ebp - 0x70]
cmp ecx, 0xf
jbe 0x100315df
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100315d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100317b2
push ecx
push edx
call fcn.100899b0
add esp, 8
cmp dword [ebp - 0x38], 0xf
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x34]
cmova ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x20], 0xf
push ecx
cmova eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 4], 6
dec edi
mov ecx, dword [ebp - 0x20]
jmp 0x100314d6
cmp ecx, 0xf
jbe 0x100316ea
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100316e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100317b7
push ecx
push edx
call fcn.100899b0
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp ecx, 0xf
jbe 0x10031730
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10031726
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100317b7
push ecx
push edx
call fcn.100899b0
add esp, 8
push esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
call fcn.1008b345
mov ecx, dword [ebx + 0x20]
add esp, 4
cmp ecx, 0xf
jbe 0x1003177b
mov edx, dword [ebx + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10031771
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100317b7
push ecx
push edx
call fcn.100899b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10089573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c
push 5
call fcn.1008b2ff
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.1008b2ff
call fcn.1009211e
call fcn.1009211e
call fcn.1009211e
int3