Function at 0x10014e00
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x2f4
mov eax, dword [0x1008f304]
xor eax, esp
mov dword [esp + 0x2f0], eax
mov eax, dword [esp + 0x2fc]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x304]
mov dword [esp + 0x24], esi
push edi
mov edi, dword [esp + 0x310]
test eax, eax
jns 0x10014eb8
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
or ebx, 0xffffffff
cmp ecx, ebx
jne 0x10014e65
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push esi
jmp 0x100151ab
shr eax, 0xa
mov edx, 0x80
and eax, 1
mov dword [esp + 0x18], eax
cmp dword [esp + 0x314], ebp
je 0x10014e8c
test eax, eax
mov dword [esp + 0x1c], 0x200080
cmovne edx, dword [esp + 0x1c]
mov eax, edx
push 0
or eax, 0x2000000
and cl, 0x10
cmove eax, edx
push eax
push 3
push 0
push 1
push 0x80
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x10014ecf
jmp 0x10014e51
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
or ebx, 0xffffffff
mov dword [esp + 0x14], eax
pop ecx
cmp eax, ebx
je 0x100151b7
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
test esi, esi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
je 0x10015194
push 0x18
lea eax, [esp + 0x9c]
push eax
push 1
push esi
call dword [sym.imp.kernel32.dll_GetFileInformationByHandleEx]
mov dword [esp + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], ebp
je 0x10015194
mov eax, dword [esp + 0x20]
test eax, eax
jns 0x1001507b
push 0x250
lea eax, [esp + 0xb4]
push 0
push eax
call sub.vcruntime140.dll_memset
add esp, 0xc
test dword [esp + 0x64], 0x400
je 0x10014f92
lea eax, [esp + 0xb0]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, ebx
jne 0x10014f8b
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push esi
mov ecx, eax
call fcn.100156fd
add esp, 4
mov dword [ecx], eax
push dword [esp + 0x10]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x100151b7
push eax
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [esp + 0x18], ebp
je 0x10015070
cmp dword [esp + 0x314], ebp
jne 0x10015070
xor eax, eax
push eax
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFinalPathNameByHandleW]
mov esi, eax
cmp esi, 0x2800
jb 0x10014fd0
mov dword [esp + 0x14], 0x6f
jmp 0x10015066
test esi, esi
jne 0x10014fe6
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x14], eax
test esi, esi
je 0x10015066
lea eax, [esi + 3]
mov dword [esp + 0x24], eax
lea eax, [eax*2 + 2]
push eax
call sym.glib_lite.dll_Ordinal_194
pop ecx
push 0
push dword [esp + 0x28]
mov ebp, eax
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_GetFinalPathNameByHandleW]
mov ecx, dword [esp + 0x24]
mov esi, eax
dec ecx
cmp esi, ecx
jb 0x10015032
mov dword [esp + 0x14], 0x6f
mov eax, ebp
test eax, eax
je 0x10015066
push eax
xor ebp, ebp
call sym.glib_lite.dll_Ordinal_105
pop ecx
jmp 0x10015066
test esi, esi
je 0x10015021
xor eax, eax
mov dword [esp + 0x18], esi
cmp word [ebp + esi*2], ax
je 0x10015051
lea eax, [esi + 1]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov word [ebp + eax*2], cx
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.10015276
mov esi, dword [esp + 0x20]
pop ecx
pop ecx
test esi, esi
jne 0x1001506c
xor eax, eax
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x1c], 0
je 0x100151a1
test eax, eax
jns 0x100150a1
lea eax, [esp + 0x2c]
test ebp, ebp
push eax
mov eax, dword [esp + 0x2c]
cmovne eax, ebp
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64]
jmp 0x100150ad
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64]
pop ecx
pop ecx
test eax, eax
je 0x100150cd
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
push ebp
mov esi, dword [eax]
call sym.glib_lite.dll_Ordinal_105
pop ecx
call edi
mov dword [eax], esi
jmp 0x100151b7
push ebp
call sym.glib_lite.dll_Ordinal_105
mov eax, dword [esp + 0x30]
xor ebx, ebx
mov edx, dword [esp + 0x68]
mov dword [edi + 0x24], eax
mov ax, word [esp + 0x36]
mov word [edi + 0x2c], ax
mov eax, dword [esp + 0x84]
mov dword [edi], eax
xor eax, eax
or eax, dword [esp + 0x98]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x90]
mov dword [edi + 0x34], eax
xor eax, eax
or eax, dword [esp + 0x8c]
pop ecx
mov ecx, dword [esp + 0x90]
or ecx, ebx
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x98]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x84]
or ecx, ebx
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x9c]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x1c], eax
cmp dword [esp + 0x20], ebx
jge 0x10015163
and edx, 0x400
or edx, ebx
je 0x10015163
mov eax, dword [esp + 0xd4]
mov dword [edi + 0x20], eax
jmp 0x10015166
mov dword [edi + 0x20], ebx
mov eax, dword [esp + 0x5c]
mov dword [edi + 0x40], eax
mov eax, dword [esp + 0x60]
mov dword [edi + 0x44], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0x4c], eax
mov eax, dword [esp + 0x54]
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 0x54], eax
xor eax, eax
jmp 0x100151b9
cmp dword [esp + 0x20], ebp
jge 0x100151a1
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [esp + 0x14]
mov ecx, eax
call fcn.100156fd
add esp, 4
mov dword [ecx], eax
mov eax, ebx
mov ecx, dword [esp + 0x300]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003c212
add esp, 0x2f4
ret