Function at 0x10028040
Capabilities:
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009db31
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x100c34c0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x100c34c0]
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.10048b50
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 0x100280ce
mov eax, dword [esi]
jmp 0x100280d0
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 0x100280f9
xor bl, bl
jmp 0x100282d0
mov dword [esp + 0x1b8], eax
push 3
xor eax, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
push 0x100ad768
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.10012a10
mov byte [esp + 0x1d0], 4
push ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.10049180
mov bl, al
mov byte [esp + 0x1d0], 0
cmp dword [esp + 0x28], 8
jb 0x10028173
push dword [esp + 0x14]
call fcn.10076e4c
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 0x1002825a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.1004a3e0
mov ecx, eax
mov byte [esp + 0x1d0], 5
cmp dword [ecx + 0x14], 8
mov ebx, dword [ecx + 0x10]
jb 0x100281b5
mov ecx, dword [ecx]
mov edi, 3
cmp ebx, edi
cmovb edi, ebx
test edi, edi
je 0x100281d9
mov edx, 0x100adb24
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x100281e9
add ecx, 2
add edx, 2
dec edi
jne 0x100281c8
xor eax, eax
test eax, eax
jne 0x10028201
cmp ebx, 3
jae 0x100281f7
or eax, 0xffffffff
jmp 0x100281ff
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x100281db
xor eax, eax
cmp ebx, 3
setne al
test eax, eax
sete bl
mov byte [esp + 0x1d0], 0
cmp dword [esp + 0x28], 8
jb 0x1002821f
push dword [esp + 0x14]
call fcn.10076e4c
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 0x1002825a
cmp dword [esi + 0x10], eax
jne 0x10028243
xor bl, bl
jmp 0x1002825a
cmp dword [esi + 0x14], 8
jb 0x1002824d
mov ecx, dword [esi]
jmp 0x1002824f
mov ecx, esi
call fcn.10026180
cmp eax, 1
sete bl
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x100282d0
cmp dword [esi + 0x10], 0
je 0x100282d0
cmp dword [esi + 0x14], 8
jb 0x10028278
mov eax, dword [esi]
jmp 0x1002827a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x10028295
mov ecx, esi
call fcn.10027650
mov ecx, esi
call fcn.10027440
jmp 0x100282d0
cmp dword [esi + 0x10], 0
je 0x100282d0
cmp dword [esi + 0x14], 8
jb 0x100282a5
mov ecx, dword [esi]
jmp 0x100282a7
mov ecx, esi
call fcn.10026180
cmp eax, 1
sete al
test al, al
je 0x100282d0
mov ecx, esi
call fcn.10026a80
test al, al
jne 0x100282d0
cmp dword [esi + 0x14], 8
jb 0x100282c9
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x1d0], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.10048e30
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.10076e3d
mov esp, ebp
pop ebp
ret