Function at 0x10008320
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c355
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10063058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp - 0x44]
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov esi, dword [ebp + 0x18]
mov edx, esi
cmovae ecx, dword [ebp + 8]
push 1
push 0x1005b8d4
push ecx
call fcn.100061b0
add esp, 0x10
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea edx, [eax + 1]
xor eax, eax
mov word [ebp - 0x40], ax
cmp esi, edx
jb 0x10008581
sub esi, edx
lea eax, [ebp + 8]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
lea eax, [eax + edx*2]
push eax
call fcn.10007770
mov byte [ebp - 4], 2
mov eax, 0x10063b04
cmp dword [0x10063b18], 8
cmovae eax, dword [0x10063b04]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1005baf4
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x5c]
call fcn.10002330
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.10009ec0
mov edx, dword [ebp - 0x48]
add esp, 8
cmp edx, 8
jb 0x10008439
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000842f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008586
push edx
push ecx
call fcn.10028ef0
add esp, 8
cmp dword [0x10063b18], 8
lea eax, [ebp - 0x28]
mov ecx, 0x10063b04
cmovae ecx, dword [0x10063b04]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10008499
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000848f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000858b
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x100084e7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100084dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000858b
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x1000851d
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10008513
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000858b
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x10008567
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000855d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000858b
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10028ebf
mov esp, ebp
pop ebp
ret
call fcn.10001350
call fcn.1002d5ef
call fcn.1002d5ef
int3