Function at 0x574380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5fbb58
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
lea edi, [esi + 4]
je 0x5743bc
mov eax, 1
jmp 0x5745c3
cmp dword [esp + 0x2c], 0
je 0x5743dd
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5745a2
test al, 0x10
jne 0x5745a2
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [esp + 0x30], esp
mov ebp, esp
call fcn.0040a210
add eax, 0x10
mov dword [ebp], eax
lea eax, [esp + 0x30]
push eax
call fcn.00576210
mov dword [esp + 0x2c], 0
mov eax, dword [eax]
push eax
call fcn.00575d40
add esp, 0xc
test eax, eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x57443e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x5745a2
mov eax, dword [esi + 0x20]
xor ecx, ecx
cmp eax, ecx
je 0x574462
mov ebp, 0x20
mov dword [esp + 0x18], 0x1002
mov dword [esp + 0x2c], ebp
jmp 0x574476
mov dword [esp + 0x2c], 0x12
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], 0x1012
cmp eax, ecx
je 0x574517
cmp dword [esi + 0x24], ecx
je 0x574517
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], esp
mov ebx, esp
call fcn.0040a210
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
add eax, 0x10
push edx
mov dword [ebx], eax
call fcn.00574210
add esp, 0xc
test eax, eax
je 0x5745bc
mov eax, dword [esi + 0x2c]
add esi, 0x2c
test eax, eax
je 0x5744d7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], 0
mov eax, dword [edi]
test eax, eax
je 0x5744eb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], 0
mov eax, dword [esp + 0x2c]
push esi
push 1
push eax
call dword [sym.imp.ole32.dll_CreateILockBytesOnHGlobal]
mov esi, dword [esi]
test esi, esi
je 0x5745bc
push edi
push 0
push 0
push ebp
push 0
push esi
call dword [sym.imp.ole32.dll_StgOpenStorageOnILockBytes]
jmp 0x5745bc
mov eax, dword [esi]
mov ebx, dword [sym.imp.ole32.dll_StgOpenStorage]
push edi
push ecx
push ecx
push ebp
push ecx
push eax
call ebx
cmp dword [edi], 0
mov ebp, eax
jne 0x5745bc
cmp dword [esi + 0x20], 0
jne 0x5745a6
mov eax, esi
call fcn.005741f0
test eax, eax
je 0x5745a6
cmp ebp, 0x80030005
je 0x57455b
cmp ebp, 0x80030020
je 0x57455b
cmp ebp, 0x80030021
jne 0x5745a6
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x14], 0
lea esp, [esp]
push 0xc8
call ebp
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi]
push edi
push 0
push 0
push ecx
push 0
push edx
call ebx
cmp dword [edi], 0
jne 0x5745bc
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 5
mov dword [esp + 0x14], eax
jl 0x574570
cmp dword [edi], 0
jne 0x5745bc
xor eax, eax
jmp 0x5745c3
cmp dword [edi], 0
jne 0x5745bc
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
push edi
push 0
push eax
push ecx
call dword [sym.imp.ole32.dll_StgCreateDocfile]
xor eax, eax
cmp dword [edi], eax
setne al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4