Function at 0x1002a870
Capabilities:
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10095131
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x100b84c0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x100b84c0]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov esi, edx
push ecx
push ecx
lea ecx, [esp + 0x34]
call fcn.10042000
mov dword [esp + 0x1d0], 0
cmp dword [esi + 0x14], 8
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0x493e0
mov dword [esp + 0x1ac], 0x7530
mov dword [esp + 0x1b0], 0x7530
jb 0x1002a8fe
mov eax, dword [esi]
jmp 0x1002a900
mov eax, esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x1002a929
xor bl, bl
jmp 0x1002ab00
mov dword [esp + 0x1b8], eax
push 3
xor eax, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
push 0x100a372c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1bc], 1
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.100157b0
mov byte [esp + 0x1d0], 4
push ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.10042630
mov bl, al
mov byte [esp + 0x1d0], 0
cmp dword [esp + 0x28], 8
jb 0x1002a9a3
push dword [esp + 0x14]
call fcn.1006e29c
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
test bl, bl
je 0x1002aa8a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.10043890
mov ecx, eax
mov byte [esp + 0x1d0], 5
cmp dword [ecx + 0x14], 8
mov ebx, dword [ecx + 0x10]
jb 0x1002a9e5
mov ecx, dword [ecx]
mov edi, 3
cmp ebx, edi
cmovb edi, ebx
test edi, edi
je 0x1002aa09
mov edx, 0x100a7674
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x1002aa19
add ecx, 2
add edx, 2
dec edi
jne 0x1002a9f8
xor eax, eax
test eax, eax
jne 0x1002aa31
cmp ebx, 3
jae 0x1002aa27
or eax, 0xffffffff
jmp 0x1002aa2f
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x1002aa0b
xor eax, eax
cmp ebx, 3
setne al
test eax, eax
sete bl
mov byte [esp + 0x1d0], 0
cmp dword [esp + 0x28], 8
jb 0x1002aa4f
push dword [esp + 0x14]
call fcn.1006e29c
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
test bl, bl
je 0x1002aa8a
cmp dword [esi + 0x10], eax
jne 0x1002aa73
xor bl, bl
jmp 0x1002aa8a
cmp dword [esi + 0x14], 8
jb 0x1002aa7d
mov ecx, dword [esi]
jmp 0x1002aa7f
mov ecx, esi
call fcn.10028970
cmp eax, 1
sete bl
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x1002ab00
cmp dword [esi + 0x10], 0
je 0x1002ab00
cmp dword [esi + 0x14], 8
jb 0x1002aaa8
mov eax, dword [esi]
jmp 0x1002aaaa
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1002aac5
mov ecx, esi
call fcn.10029e80
mov ecx, esi
call fcn.10029c70
jmp 0x1002ab00
cmp dword [esi + 0x10], 0
je 0x1002ab00
cmp dword [esi + 0x14], 8
jb 0x1002aad5
mov ecx, dword [esi]
jmp 0x1002aad7
mov ecx, esi
call fcn.10028970
cmp eax, 1
sete al
test al, al
je 0x1002ab00
mov ecx, esi
call fcn.100292b0
test al, al
jne 0x1002ab00
cmp dword [esi + 0x14], 8
jb 0x1002aaf9
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x1d0], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.100422e0
mov al, bl
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.1006e28d
mov esp, ebp
pop ebp
ret