Function at 0x1001cb20
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1004316b
mov eax, dword fs:[0]
push eax
mov eax, 0x14b4
call fcn.1003ec80
mov eax, dword [0x1006c318]
xor eax, esp
mov dword [esp + 0x14b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006c318]
xor eax, esp
push eax
lea eax, [esp + 0x14c8]
mov dword fs:[0], eax
mov edi, dword [esp + 0x14d8]
push 0
push edi
mov esi, ecx
call dword [sym.imp.MSVCR80.dll__waccess_s]
add esp, 8
cmp eax, 0xffffffff
jne 0x1001cb97
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.1001bcb0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
or eax, 0xffffffff
jmp 0x1001cd47
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
je 0x1001cba9
lea ecx, [esp + 0x14]
push ecx
jmp 0x1001cb7e
mov edx, dword [esi + 0x13c8]
call edx
mov ebp, eax
test ebp, ebp
mov ecx, esi
jne 0x1001cbda
push str.Error.CouldNotCarryOut
lea eax, [esp + 0x18]
push eax
call fcn.1001bbd0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
or eax, 0xffffffff
jmp 0x1001cd47
call fcn.1001c350
test eax, eax
jne 0x1001cc59
cmp dword [esi + 0x254], 2
jne 0x1001cc59
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.1001c1a0
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.1001bf10
mov eax, dword [esp + 0x14]
test eax, eax
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
jne 0x1001cc28
test ecx, ecx
jne 0x1001cc28
mov eax, ebx
sub eax, dword [esp + 0x20]
mov ecx, edx
sub ecx, dword [esp + 0x24]
add edx, 0xffffffff
push edx
mov edx, dword [esp + 0x28]
add ebx, 0xffffffff
push ebx
push edx
mov edx, dword [esp + 0x2c]
push edx
add ecx, 0xffffffff
push ecx
add eax, 0xffffffff
push eax
mov eax, dword [esi + 0x54]
push 0
push 0
push ebp
push edi
push eax
lea ecx, [esi + 0x2f0]
call fcn.100061d0
jmp 0x1001ccb6
lea ecx, [esp + 0x30]
call fcn.10004ec0
mov ecx, dword [esi + 0x13c0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x14d8], 0
call edx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
add eax, 0xffffffff
push eax
add ecx, 0xffffffff
push ecx
push 0
push 0
push eax
mov eax, dword [esi + 0x54]
push ecx
push 0
push 0
push ebp
push edi
push eax
lea ecx, [esi + 0x2f0]
call fcn.100061d0
mov dword [esp + 0x14d0], 0xffffffff
cmp eax, 1
jge 0x1001cd2b
mov ecx, eax
and ecx, 0x60000000
cmp ecx, 0x40000000
je 0x1001cd2b
sar eax, 0x10
and eax, 0x7f
xor bl, bl
cmp eax, 2
jne 0x1001ccf5
push str.Error.CouldNotCarryOut
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.1001bbd0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x1001cd14
cmp eax, 4
jne 0x1001cd14
push 0
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.1001bbd0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov bl, 1
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
neg bl
sbb ebx, ebx
neg ebx
sub ebx, 1
mov eax, ebx
jmp 0x1001cd47
mov ecx, dword [esi + 0x27c]
test ecx, ecx
je 0x1001cd3c
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0x27c], ebp
mov eax, 1
mov ecx, dword [esp + 0x14c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14b0]
xor ecx, esp
call fcn.1003e9c6
add esp, 0x14c0
ret 4