Function at 0x40e9f0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x34
push esi
mov esi, dword [esp + 0x3c]
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40ea37
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi - 1]
test eax, eax
jle 0x40ea37
cmp byte [eax + esi], 0x2e
je 0x40ea3f
dec eax
test eax, eax
jg 0x40ea2c
pop edi
xor eax, eax
pop esi
add esp, 0x34
ret
test eax, eax
jle 0x40ea37
xor edx, edx
cmp eax, edi
jge 0x40ea57
mov cl, byte [eax + esi]
mov byte [esp + edx + 8], cl
inc edx
inc eax
cmp edx, 9
jl 0x40ea45
push 4
lea edx, [esp + 0xc]
push str..exe
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ea7a
pop edi
mov eax, 1
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..com
push eax
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ea9d
pop edi
mov eax, 2
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..dll
push ecx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40eac0
pop edi
mov eax, 3
pop esi
add esp, 0x34
ret
push 5
lea edx, [esp + 0xc]
push str..html
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40eae3
pop edi
mov eax, 4
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..bat
push eax
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40eb06
pop edi
mov eax, 5
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..inf
push ecx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40eb29
pop edi
mov eax, 6
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..pif
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40eb4c
pop edi
mov eax, 7
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..reg
push eax
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40eb6f
pop edi
mov eax, 8
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..lnk
push ecx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40eb92
pop edi
mov eax, 9
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..scr
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ebb5
pop edi
mov eax, 0xa
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..asp
push eax
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ebd8
pop edi
mov eax, 0xb
pop esi
add esp, 0x34
ret
push 3
lea ecx, [esp + 0xc]
push 0x42278c
push ecx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ebfb
pop edi
mov eax, 0xc
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..vbs
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ec1e
pop edi
mov eax, 0xd
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..wsf
push eax
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ec41
pop edi
mov eax, 0xe
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..wsh
push ecx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ec64
pop edi
mov eax, 0xf
pop esi
add esp, 0x34
ret
push 5
lea edx, [esp + 0xc]
push str..aspx
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ec87
pop edi
mov eax, 0x10
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..htt
push eax
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ecaa
pop edi
mov eax, 0x11
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..htm
push ecx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40eccd
pop edi
mov eax, 0x12
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..htx
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ecf0
pop edi
mov eax, 0x13
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..jsp
push eax
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ed13
pop edi
mov eax, 0x14
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..jse
push ecx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ed36
pop edi
mov eax, 0x15
pop esi
add esp, 0x34
ret
push 3
lea edx, [esp + 0xc]
push 0x422748
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ed59
pop edi
mov eax, 0x16
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..wsc
push eax
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ed7c
pop edi
mov eax, 0x17
pop esi
add esp, 0x34
ret
push 3
lea ecx, [esp + 0xc]
push 0x42273c
push ecx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ed9f
pop edi
mov eax, 0x18
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..vbe
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40edc2
pop edi
mov eax, 0x19
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..cmd
push eax
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ede5
pop edi
mov eax, 0x1a
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..hta
push ecx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40ea37
pop edi
mov eax, 0x1b
pop esi
add esp, 0x34
ret