Function at 0x300200d8
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x3003f47b
call fcn.300088d4
push ecx
sub esp, 0x668
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
push ebx
mov dword [ebp - 0x18], esi
call fcn.30020368
lea eax, [esi + 0xbc]
lea ecx, [ebp - 0x240]
push eax
call fcn.30020098
xor eax, eax
cmp dword [ebp + 8], 2
lea edi, [esi + 0x2f4]
mov dword [ebp - 4], ebx
sete al
push eax
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.300203b2
mov ecx, dword [edi]
lea eax, [ebp - 0x240]
push eax
call fcn.30020419
lea ecx, [ebp - 0x678]
call fcn.3001fa3d
lea eax, [ebp - 0x678]
lea ecx, [ebp - 0x240]
push eax
call fcn.300204e1
cmp dword [ebp - 0x14], ebx
je 0x3002020b
cmp dword [ebp + 8], ebx
mov edi, 0x80004005
mov dword [esi + 0x10], ebx
mov dword [esi + 0x2e8], ebx
je 0x3004a31e
cmp dword [ebp + 8], 3
je 0x3004a31e
xor eax, eax
cmp dword [ebp + 8], 2
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 1
setne al
dec eax
and eax, 0xe
add eax, 0x12
mov edi, eax
call fcn.3001fa3d
lea eax, [ebp - 0x45c]
lea ecx, [ebp - 0x240]
push eax
call fcn.300204e1
lea ecx, [ebp - 0x45c]
call fcn.30008eca
lea ecx, [esi + 4]
push ecx
push ebx
push ebx
push edi
push ebx
push eax
call dword [sym.imp.ole32.dll_StgOpenStorage]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], ebx
jl 0x30020262
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x2f4]
mov dword [esi + 8], eax
call fcn.3001a64f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.3001faaf
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
cmp dword [esi + 0x320], 0xffffffff
lea edi, [esi + 0x320]
jne 0x3002022e
lea ecx, [ebp - 0x678]
call fcn.30008f21
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [edi], eax
mov ecx, dword [esi + 0x314]
lea eax, [esi + 0x308]
or ecx, dword [eax + 8]
or ecx, dword [eax + 4]
or ecx, dword [eax + 0x14]
or ecx, dword [eax + 0x10]
or ecx, dword [eax]
jne 0x3002015f
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.3001840d
pop ecx
pop ecx
jmp 0x3002015f
cmp dword [ebp + 8], 4
je 0x3004a301
cmp edi, ebx
jge 0x300201da
lea ecx, [ebp - 0x45c]
mov dword [esi + 4], ebx
call fcn.3001fa3d
lea eax, [ebp - 0x45c]
lea ecx, [esi + 0xbc]
push eax
call fcn.300204e1
lea eax, [ebp - 0x45c]
push ebx
push eax
push edi
call fcn.300209d0
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x30020358
push eax
call fcn.30020a74
jmp 0x300201da
xor eax, eax
cmp edi, 0x80030020
sete al
mov dword [esi + 0x2e8], eax
mov dword [ebp + 8], 2
jmp 0x30020180
cmp dword [esi + 0x1c], ebx
jne 0x3004a3ab
lea ecx, [ebp - 0x240]
call fcn.3005a38e
test eax, eax
je 0x3004a33d
mov ecx, esi
call fcn.30081405
cmp dword [ebp + 8], ebx
jne 0x3004a36a
lea eax, [esi + 4]
lea ecx, [ebp - 0x678]
push eax
push ebx
push 0x8001012
call fcn.30008eca
push eax
call dword [sym.imp.ole32.dll_StgCreateDocfile]
mov edi, eax
xor eax, eax
cmp edi, ebx
setge al
mov dword [esi + 0x10], eax
cmp edi, 0x800300ff
je 0x3004a378
cmp dword [ebp + 8], 3
jne 0x3004a396
lea eax, [esi + 4]
lea ecx, [ebp - 0x678]
push eax
push ebx
push 0x1012
call fcn.30008eca
push eax
call dword [sym.imp.ole32.dll_StgCreateDocfile]
mov edi, eax
xor eax, eax
cmp edi, ebx
setge al
mov dword [ebp + 8], ebx
mov dword [esi + 0x2ec], eax
jmp 0x3002026c
mov dword [ebp + 8], 3
jmp 0x3004a327