Function at 0x40eae0
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 0x40eb27
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 0x40eb27
cmp byte [eax + esi], 0x2e
je 0x40eb2f
dec eax
test eax, eax
jg 0x40eb1c
pop edi
xor eax, eax
pop esi
add esp, 0x34
ret
test eax, eax
jle 0x40eb27
xor edx, edx
cmp eax, edi
jge 0x40eb47
mov cl, byte [eax + esi]
mov byte [esp + edx + 8], cl
inc edx
inc eax
cmp edx, 9
jl 0x40eb35
push 4
lea edx, [esp + 0xc]
push str..exe
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40eb6a
pop edi
mov eax, 1
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..com
push eax
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40eb8d
pop edi
mov eax, 2
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..dll
push ecx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ebb0
pop edi
mov eax, 3
pop esi
add esp, 0x34
ret
push 5
lea edx, [esp + 0xc]
push str..html
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ebd3
pop edi
mov eax, 4
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..bat
push eax
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ebf6
pop edi
mov eax, 5
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..inf
push ecx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ec19
pop edi
mov eax, 6
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..pif
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ec3c
pop edi
mov eax, 7
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..reg
push eax
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ec5f
pop edi
mov eax, 8
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..lnk
push ecx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ec82
pop edi
mov eax, 9
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..scr
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40eca5
pop edi
mov eax, 0xa
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..asp
push eax
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ecc8
pop edi
mov eax, 0xb
pop esi
add esp, 0x34
ret
push 3
lea ecx, [esp + 0xc]
push 0x4227fc
push ecx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40eceb
pop edi
mov eax, 0xc
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..vbs
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ed0e
pop edi
mov eax, 0xd
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..wsf
push eax
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ed31
pop edi
mov eax, 0xe
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..wsh
push ecx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ed54
pop edi
mov eax, 0xf
pop esi
add esp, 0x34
ret
push 5
lea edx, [esp + 0xc]
push str..aspx
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ed77
pop edi
mov eax, 0x10
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..htt
push eax
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ed9a
pop edi
mov eax, 0x11
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..htm
push ecx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40edbd
pop edi
mov eax, 0x12
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..htx
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ede0
pop edi
mov eax, 0x13
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..jsp
push eax
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ee03
pop edi
mov eax, 0x14
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..jse
push ecx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ee26
pop edi
mov eax, 0x15
pop esi
add esp, 0x34
ret
push 3
lea edx, [esp + 0xc]
push 0x4227b8
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ee49
pop edi
mov eax, 0x16
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..wsc
push eax
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ee6c
pop edi
mov eax, 0x17
pop esi
add esp, 0x34
ret
push 3
lea ecx, [esp + 0xc]
push 0x4227ac
push ecx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40ee8f
pop edi
mov eax, 0x18
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..vbe
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40eeb2
pop edi
mov eax, 0x19
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..cmd
push eax
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40eed5
pop edi
mov eax, 0x1a
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..hta
push ecx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40eb27
pop edi
mov eax, 0x1b
pop esi
add esp, 0x34
ret