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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10118d63
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x10159e80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x54], 0
jne 0x100087d8
cmp dword [edi + 4], esi
je 0x10008ae5
push ecx
lea ecx, [edi - 0xf20]
call fcn.10011380
mov dword [ebp - 0x58], eax
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
test eax, eax
je 0x10008817
lea ecx, [eax + 0x440]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.10008b10
mov dword [ebp - 4], 0
mov ecx, 1
jmp 0x1000882e
lea ecx, [ebp - 0x94]
call fcn.10008c10
mov dword [ebp - 4], 1
mov ecx, 2
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.10008b10
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x50]
test al, 2
je 0x1000885f
and eax, 0xfffffffd
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x50], eax
call fcn.10001f00
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 4
test al, 1
je 0x1000886f
lea ecx, [ebp - 0x7c]
call fcn.10001f00
test esi, esi
js 0x10008add
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x1c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x10008add
lea ecx, [ebp - 0x4c]
call fcn.100c88b0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x3c], 0
je 0x10008ad5
lea ecx, [ebp - 0xb8]
call fcn.10007d30
push 1
push 0x101373e0
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.10002000
mov dword [ebp - 0x78], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x74], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 7
lea ecx, [esi + esi*2]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + ecx*8 + 0x14], 7
lea eax, [eax + ecx*8]
mov ecx, eax
jbe 0x10008920
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x88]
call fcn.10002000
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x34]
call fcn.100022c0
lea ecx, [ebp - 0x70]
call fcn.10002530
lea ecx, [ebp - 0x88]
call fcn.10002530
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xc
call fcn.10002530
mov ecx, dword [ebp - 0x24]
mov eax, Ordinal_1
sub eax, ecx
cmp eax, 4
jb 0x10008b02
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x34]
push 4
cmova eax, dword [ebp - 0x34]
push str..fxp
push ecx
push eax
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0xa0]
call fcn.10002200
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x70]
call fcn.100022c0
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x60], 0
jne 0x100089dc
xor al, al
jmp 0x10008a0f
mov edx, 0x10161b00
lea ecx, [ebp - 0x70]
call fcn.100c98d0
test al, al
je 0x100089f7
lea ecx, [ebp - 0x70]
call fcn.100c8610
jmp 0x10008a0f
cmp dword [ebp - 0x5c], 7
lea eax, [ebp - 0x70]
cmova eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
test al, al
mov ecx, str..rrp
mov edx, str..fxp
cmove edx, ecx
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x54], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008a26
sub ecx, dword [ebp - 0x54]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.10002000
lea ecx, [ebp - 0x70]
call fcn.10002530
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
call fcn.10002530
mov ecx, dword [edi + 0xe0]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x50], 0
push eax
call fcn.10003770
cmp dword [ebp - 0x50], 0
mov dword [ebp - 0x54], eax
je 0x10008acd
test eax, eax
je 0x10008acd
mov ecx, dword [edi + 0xe0]
mov dword [edi + 4], esi
push 0
push esi
mov eax, dword [ecx]
call dword [eax + 0x60]
mov edx, dword [edi]
xor eax, eax
cmp byte [ebp + 0xc], al
mov ecx, 0x3c
cmovne eax, ecx
mov ecx, edi
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call dword [edx]
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x10008ac2
mov eax, dword [ecx + 0x420]
add ecx, 0x420
push 0
push esi
call dword [eax + 0x14]
push dword [ebp - 0x50]
call fcn.100edc4e
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.10002530
lea ecx, [ebp - 0x4c]
call fcn.10002530
lea ecx, [ebp - 0x1c]
call fcn.10001f00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100edbdf
mov esp, ebp
pop ebp
ret 8
call fcn.10002e80
int3