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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41a56b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push esi
push edi
mov eax, dword [0x425028]
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 0x409ce8
test eax, eax
je 0x409ce8
cmp dword [ecx + 0xc], 0
je 0x409aaa
call sub.MFC80U.DLL_Ordinal_5434
mov eax, dword [0x41cc70]
mov ecx, dword [0x41cc74]
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 0x409ba5
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.00409e40
test al, al
je 0x409b9d
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.00409d10
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esi, 1
cmp esi, dword [ebp + 0xc]
jb 0x409b50
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jbe 0x409ce2
jmp 0x409bb8
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 0x41c688
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 0x409c9e
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_575]
lea edx, [esp + 0x2cc]
push edx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 2
je 0x409c9a
test al, 0x10
jne 0x409c9a
lea ecx, [esp + 0x2cc]
call fcn.004061b0
test eax, eax
jle 0x409c9a
cmp eax, 6
je 0x409c9a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2cc]
push eax
call sub.MFC80U.DLL_Ordinal_1003
test esi, esi
jne 0x409c26
lea ecx, [esp + 0x20]
call sub.MFC80U.DLL_Ordinal_1431
mov esi, dword [esp + 0x14]
push esi
lea edi, [esp + 0x78]
call fcn.00409390
push esi
lea edi, [esp + 0x140]
call fcn.00409390
lea ecx, [esp + 0x20]
mov dword [esp + 0x4e0], 0xffffffff
call sub.MFC80U.DLL_Ordinal_631
add ebx, 1
cmp ebx, dword [ebp + 0xc]
jb 0x409bb2
mov al, byte [esp + 0x13]
jmp 0x409cea
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.00417909
mov esp, ebp
pop ebp
ret 8