Function at 0x1012022
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x1037384
call fcn.01035f78
sub esp, 0x58
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x28], eax
push ebx
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax]
push ebx
mov dword [ebp - 0x38], ecx
mov eax, dword [eax]
mov eax, dword [eax - 8]
add eax, eax
push 0x21
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x3c]
push 1
add eax, 2
push 7
mov word [ebp - 0x3a], ax
push ebx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
push ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
push 0x120089
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x64], 0x18
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], 0x40
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call dword [0x1001c0c]
test eax, eax
jl 0x10123d6
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [0x10011b0]
cmp eax, ebx
je 0x10120c6
mov eax, dword [ebp - 0x44]
cmp eax, dword [edi + 0x18]
jne 0x10120d6
mov eax, dword [ebp - 0x40]
cmp eax, dword [edi + 0x1c]
jne 0x10120d6
inc ebx
push dword [ebp - 0x1c]
call dword [0x10011ac]
mov eax, ebx
jmp 0x10123dd
mov ecx, dword [ebp - 0x18]
push ebx
push edi
call fcn.01011ebf
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x40]
push 0x2800
mov dword [edi + 0x1c], eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x24], eax
push esi
mov esi, dword [ebp - 0x24]
push ebx
push ebx
push ebx
push 1
push 0x2800
push esi
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [0x1001c08]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x101212c
cmp eax, 0x80000005
jne 0x10123b4
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x830], ebx
mov dword [ebp - 0x14], esi
jne 0x1012154
cmp dword [esi + 0xc], 0x1b01234
je 0x1012395
cmp dword [esi + 8], 0xdead44a0
je 0x1012395
mov eax, dword [esi + 0x3c]
shr eax, 1
push eax
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.01034f4a
test byte [esi + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x101233c
push 0x10036d4
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1012389
push 0x10036cc
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1012389
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, dword [ecx + 0x824]
cmp eax, ecx
lea esi, [ebp + 8]
jne 0x1012252
push 0x100373c
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10121ee
push 4
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x10122bd
push 0xdc2
jmp 0x1012286
push 0x1003730
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1012220
push 4
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x10122bd
push 0xdc3
jmp 0x1012286
push 0x1003724
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10122c4
push 4
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x10122bd
push 0xdc4
jmp 0x1012286
cmp eax, ebx
je 0x10122c4
cmp dword [eax], ecx
jne 0x10122c4
push 0x1003714
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x101228f
push 4
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x10122bd
push 0xdc5
mov ecx, eax
call fcn.01023477
jmp 0x10122bf
push 0x100370c
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10122c4
push 4
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x10122bd
push 0xdc6
jmp 0x1012286
xor eax, eax
mov byte [ebp - 4], bl
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
push 1
push edi
push eax
call fcn.0100f389
push 4
mov dword [ebp - 0x30], eax
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x101230d
push 0x5c
push dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
call sub.MFC42u.dll_operator_1
or dword [ebp - 0x10], 1
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 0x2c]
mov byte [ebp - 4], 7
call sub.MFC42u.dll_operator_3
jmp 0x101230f
xor eax, eax
test byte [ebp - 0x10], 1
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x20], eax
mov dword [ebp - 4], ebx
je 0x101232a
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x34]
call sub.MFC42u.dll_CString::CString
lea eax, [ebp + 8]
cmp esi, eax
je 0x1012386
push 1
mov ecx, esi
call fcn.0100f365
jmp 0x1012386
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
lea eax, [eax + eax + 0x2a]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.msvcrt.dll_malloc]
push dword [ebp - 0x30]
mov esi, eax
push ebx
push esi
call sub.msvcrt.dll_memset
mov dword [esi], edi
push dword [ebp + 8]
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x28]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 0x2c]
add esp, 0x18
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 4]
push esi
call sub.MFC42u.dll_CPtrList::AddTail_1
mov esi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::CString
mov eax, dword [edi + 4]
cmp dword [eax + 0xc], 0x64
jg 0x10123ab
mov eax, dword [esi]
cmp eax, ebx
je 0x10123ab
add esi, eax
jmp 0x101212c
cmp dword [ebp - 0x20], ebx
je 0x10120fc
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x1c]
call dword [0x10011ac]
cmp dword [ebp - 0x20], ebx
pop esi
je 0x10123da
cmp dword [ebp - 0x20], 0x80000006
je 0x10123da
xor eax, eax
jmp 0x10123dd
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4