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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x44]
mov eax, dword [edi]
lea edx, [esp + 0x14]
xor ebx, ebx
push edx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x38]
mov byte [esp + 0x1f], bl
call eax
test eax, eax
jge 0x10003025
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x48]
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], ebx
mov dword [esi], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jge 0x1000307a
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x48]
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], ebx
mov dword [esi], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
xor eax, eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov word [esp + 0x3e], ax
mov eax, 3
mov word [esp + 0x30], ax
xor eax, eax
cmp dword [esp + 0x28], ebx
jle 0x1000321d
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
lea esi, [eax + 1]
lea eax, [esp + 0x2c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x48]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x40], ebx
mov edx, dword [ecx]
push ecx
mov ecx, dword [edx + 0x20]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebp
call ecx
test eax, eax
jl 0x100031bb
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x4c]
push ecx
push eax
call edx
test eax, eax
jl 0x100031bb
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
test eax, eax
jl 0x100031af
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jl 0x100031a3
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push str.MbLk
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x10003197
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
jl 0x1000318b
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
push ebp
push ecx
call fcn.10006371
add esp, 8
test eax, eax
je 0x100031d3
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
cmp eax, dword [esp + 0x28]
jl 0x100030a3
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000321d
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x48]
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], ebx
mov dword [esi], ebx
mov byte [esp + 0x13], 1
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret