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

Disassembly:
push 0xffffffffffffffff
push 0x40ec86
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x1c], ebp
push ebp
push 1
sub esp, 0xc
mov dword [esp + 0x78], 2
mov esi, esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x2c], esp
cmp ebx, ebp
je 0x406d74
mov edi, dword [esp + 0x94]
call fcn.00408650
sub esp, 0xc
mov byte [esp + 0x84], 3
mov esi, esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x34], esp
cmp ebx, ebp
je 0x406da8
mov edi, dword [esp + 0x94]
call fcn.00408650
mov eax, dword [esp + 0x8c]
push eax
mov byte [esp + 0x88], 2
call fcn.00406610
push 1
push 1
sub esp, 0xc
mov esi, esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], esp
cmp ebx, ebp
je 0x406df5
mov edi, dword [esp + 0x94]
call fcn.00408650
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
mov edx, 0x4102bc
mov byte [esp + 0x88], 4
call fcn.00408550
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x88], 2
call fcn.00406610
mov byte [esp + 0x64], 5
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ecx, edi
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
xor ebx, ebx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], ebx
je 0x406fbd
mov dword [esp + 0x14], ebp
cmp ebx, eax
jb 0x406e62
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
mov esi, dword [edi + esi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x406f8f
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebp
push 1
cmp ebx, eax
jb 0x406e9e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x3c]
sub esp, 0xc
mov esi, esp
lea eax, [edi + ecx]
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov ebx, dword [eax + 8]
mov dword [esp + 0x34], esp
cmp ebx, ebp
je 0x406ec9
mov edi, dword [eax + 4]
call fcn.00408650
sub esp, 0xc
mov byte [esp + 0x84], 6
mov esi, esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x44], esp
cmp ebx, ebp
je 0x406efd
mov edi, dword [esp + 0x94]
call fcn.00408650
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x88], 5
call fcn.00406610
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x3c], esp
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x80], 7
call fcn.004071b0
mov eax, dword [esp + 0x84]
push eax
call fcn.004070c0
mov byte [esp + 0x64], 8
mov esi, dword [esp + 0x4c]
cmp esi, ebp
je 0x406f6d
mov edi, dword [esp + 0x50]
cmp esi, edi
je 0x406f64
lea esp, [esp]
mov edx, dword [esi]
mov eax, dword [edx]
push ebp
mov ecx, esi
call eax
add esi, 0xc
cmp esi, edi
jne 0x406f50
mov esi, dword [esp + 0x4c]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x64], 5
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
add dword [esp + 0x14], 0xc
mov ecx, edi
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [esp + 0x18], ebx
cmp ebx, eax
jb 0x406e62
mov byte [esp + 0x64], 9
cmp esi, ebp
je 0x406fed
cmp esi, edi
je 0x406fe4
lea ebx, [ebx]
mov edx, dword [esi]
mov eax, dword [edx]
push ebp
mov ecx, esi
call eax
add esi, 0xc
cmp esi, edi
jne 0x406fd0
mov esi, dword [esp + 0x34]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x7c]
add esp, 4
mov esi, vtable.NBUnicodeString.0
mov dword [esp + 0x70], esi
cmp eax, ebp
je 0x407024
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x78], ebp
mov eax, dword [esp + 0x84]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x7c], esi
cmp eax, ebp
je 0x407040
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x1c