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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x786200
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
cmp dword [edx + 0x14], 8
mov esi, edx
jb 0x781aea
mov esi, dword [edx]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], 0
push esi
call fcn.00904221
add esp, 4
cmp eax, 7
jbe 0x781b34
sub esp, 0xc
movzx ecx, byte [ebp - 0x24]
mov byte [esp + 4], cl
mov dword [esp + 8], esi
mov dword [esp], eax
lea ecx, [ebp - 0x40]
call fcn.00675f50
cmp dword [ebp - 0x2c], 8
jae 0x781b58
lea eax, [ebp - 0x40]
jmp 0x781b5b
mov dword [ebp - 0x30], eax
mov ecx, eax
add ecx, eax
lea edx, [ebp - 0x40]
push ecx
push esi
push edx
mov esi, eax
call fcn.00935430
add esp, 0xc
mov word [ebp + esi*2 - 0x40], 0
cmp dword [ebp - 0x2c], 8
jb 0x781b2f
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], 1
sub esp, 0x1c
movaps xmm0, xmmword [0x9da790]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2200000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x781bce
mov eax, dword [ebp - 0x40]
lea esi, [ecx*2 + 2]
cmp esi, 0x1000
jb 0x781bc1
mov edx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, edx
cmp eax, 0x20
jae 0x781ca9
add ecx, ecx
add ecx, 0x25
mov esi, ecx
mov eax, edx
push esi
push eax
call fcn.0091d82d
add esp, 8
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x781c14
mov dword [ebp - 0x10], 3
mov ecx, dword [ebp - 0x28]
mov edx, eax
push dword [ebp + 8]
push dword [ebp - 0x20]
call fcn.00782fb0
add esp, 8
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x781c03
mov dword [ebp - 0x10], 2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x781c90
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x781c33
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp eax, 0xffffffff
je 0x781c8a
mov eax, 5
test ecx, 0x400
mov esi, dword [ebp + 8]
jne 0x781c93
push ecx
push dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
call fcn.007841b0
mov ecx, dword [ebp - 0x20]
add esp, 8
and ecx, 0x10
cmp ecx, 1
mov ecx, 3
sbb ecx, 0
mov edx, dword [ebp - 0x28]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
jne 0x781bf5
jmp 0x781c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov edx, eax
push esi
push dword [ebp - 0x20]
call fcn.00783160
add esp, 8
jmp 0x781bed
mov dword [ebp - 0x10], 0
call fcn.00900ce1
nop word cs:[eax + eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.009350a0
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
lea ecx, [ebp - 0x40]
call fcn.0065b8a0
add esp, 0x1c
pop ebp
ret