Function at 0x102ca44
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1032c0c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], esi
cmp edi, ebx
jne 0x102ca7f
push 0x1004b6c
push 0x15e
push 0x1004bd8
call fcn.01028938
mov dword [esi], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x1032370]
cmp eax, 0x1032370
je 0x102cab2
test byte [eax + 0x1c], 1
je 0x102cab2
cmp byte [eax + 0x19], 4
jb 0x102cab2
push edi
push 0x1004bac
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01007db4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102cab7
sub eax, edx
push 2
sar eax, 1
pop ebx
cmp eax, ebx
jae 0x102cad6
mov esi, 0x80070057
jmp 0x102ce1a
push 0x10049bc
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
call edi
mov edx, dword [ebp - 0x14]
pop ecx
pop ecx
cmp eax, edx
jne 0x102cacc
add edx, 4
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x102caf5
sub eax, esi
sar eax, 1
cmp eax, ebx
jb 0x102cacc
mov esi, 0x10014f4
push esi
push edx
call edi
pop ecx
pop ecx
test eax, eax
je 0x102cacc
add eax, ebx
mov ecx, eax
lea edx, [ecx + 2]
mov dword [ebp - 0x10], edx
mov dx, word [ecx]
add ecx, ebx
test dx, dx
jne 0x102cb20
sub ecx, dword [ebp - 0x10]
sar ecx, 1
cmp ecx, ebx
jb 0x102cacc
push esi
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x102cacc
sub eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
sar eax, 1
inc eax
mov esi, eax
lea edi, [esi + esi]
push edi
call ebx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x102cb62
mov esi, 0x8007000e
jmp 0x102cdfc
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esi - 1]
push eax
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x10]
call fcn.01006493
mov esi, eax
test esi, esi
jl 0x102cdfc
mov eax, dword [0x1032370]
mov edi, 0x1032370
cmp eax, edi
je 0x102cbb7
test byte [eax + 0x1c], 1
je 0x102cbb7
cmp byte [eax + 0x19], 4
jb 0x102cbb7
push dword [ebp - 0x10]
push 0x1004bac
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01007db4
push 0
push 0x2000000
push 3
push 0
push 7
push 0x80000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x102cc2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102cbee
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x1032370]
cmp eax, edi
je 0x102cdfc
test byte [eax + 0x1c], 1
je 0x102cdfc
cmp byte [eax + 0x19], 2
jb 0x102cdfc
push esi
push dword [ebp - 0x10]
push 0x1004bac
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01007e21
jmp 0x102cdfc
mov esi, dword [sym.imp.ntdll.dll_NtQueryInformationFile]
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
push 0x31
stosd dword es:[edi], eax
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jge 0x102cca4
cmp eax, 0x80000005
je 0x102cca4
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x102cc71
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x1032370]
cmp eax, 0x1032370
je 0x102cde4
test byte [eax + 0x1c], 1
je 0x102cde4
cmp byte [eax + 0x19], 2
jb 0x102cde4
push esi
push 0x1004bac
push 0x13
jmp 0x102cd27
mov edi, dword [ebp - 0xc]
add edi, 8
push edi
mov dword [ebp - 0x20], edi
call ebx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x102cd89
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
push 0x31
push dword [ebp - 0x20]
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x1c]
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jge 0x102cd37
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x102ccf9
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x1032370]
cmp eax, 0x1032370
je 0x102cde4
test byte [eax + 0x1c], 1
je 0x102cde4
cmp byte [eax + 0x19], 2
jb 0x102cde4
push esi
push 0x1004bac
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010053b9
jmp 0x102cde4
lea esi, [edi + 4]
lea edx, [esi + 2]
mov eax, edx
mov dword [ebp - 0x20], edx
lea edi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102cd45
sub eax, edi
sar eax, 1
cmp eax, 2
jb 0x102cd6a
push 0x10014f4
push edx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x102cd71
mov esi, 0x80070057
jmp 0x102cde4
sub eax, esi
dec eax
dec eax
sar eax, 1
inc eax
mov esi, eax
lea edi, [esi + esi]
push edi
call ebx
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x102cd90
mov esi, 0x8007000e
jmp 0x102cde4
push edi
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esi - 1]
push eax
push dword [ebp - 0x20]
push esi
push ebx
call fcn.01006493
mov esi, eax
test esi, esi
jl 0x102cde4
mov eax, dword [0x1032370]
cmp eax, 0x1032370
je 0x102cddb
test byte [eax + 0x1c], 1
je 0x102cddb
cmp byte [eax + 0x19], 4
jb 0x102cddb
push ebx
push 0x1004bac
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01007db4
mov eax, dword [ebp - 0x24]
and dword [ebp - 0x18], 0
mov dword [eax], ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x102cdfc
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x10], 0
je 0x102ce0b
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x1c], 0
je 0x102ce1a
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01026693
leave
ret 8