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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10176e2d
mov eax, dword fs:[0]
push eax
sub esp, 0xd7c
mov eax, dword [0x10200854]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd44], eax
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
cmp dword [esi + 0x10], 0
je 0x1008345b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10083170
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1008345b
cmp dword [ebx + 0x18], 0
jne 0x10083192
mov dword [edi + 4], 0xa8003c
jmp 0x10083461
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
movlpd qword [ebp - 0xd70], xmm0
mov dword [ebp - 0xd64], 0
movlpd qword [ebp - 0xd54], xmm0
mov dword [ebp - 0xd48], 0
movlpd qword [ebp - 0xd80], xmm0
mov dword [ebp - 0xc20], 0xaac56b
mov dword [ebp - 0xc1c], 0x11d0cd44
mov dword [ebp - 0xc18], 0xc000c28c
mov dword [ebp - 0xc14], 0xee95c24f
mov dword [ebp - 0xd88], 0x10
jb 0x100831fb
mov esi, dword [esi]
lea eax, [ebp - 0xd88]
mov dword [ebp - 0xd84], esi
mov ecx, 0x10208da8
mov dword [ebp - 0xd74], 0x30
mov dword [ebp - 0xd68], 2
mov dword [ebp - 0xd4c], 0x100
mov dword [ebp - 0xd60], 1
mov dword [ebp - 0xd58], 1
mov dword [ebp - 0xd5c], eax
mov dword [ebp - 0xd40], 0x10208da8
call fcn.1007eb90
mov dword [ebp - 4], 0
cmp dword [0x10208da4], 0
jne 0x10083291
push 0x34
call fcn.101611e4
mov esi, eax
add esp, 4
mov dword [ebp - 0xd78], esi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.1003f400
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 0
mov dword [0x10208da4], esi
lea ecx, [ebp - 0xd40]
mov dword [ebp - 4], 0xffffffff
call fcn.1007eeb0
lea eax, [ebp - 0xd3c]
push eax
call fcn.10084ca0
test al, al
je 0x100832c8
cmp dword [ebp - 0xd38], 6
jb 0x100832c8
or dword [ebp - 0xd4c], 0x1200
jmp 0x100832cf
or dword [ebp - 0xd4c], 0x10
lea eax, [ebp - 0xd74]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, dword [ebx + 0x18]
push 0xffffffffffffffff
call eax
push 0x800
mov esi, eax
lea eax, [ebp - 0xc10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp esi, 0x800b0100
je 0x10083429
mov eax, dword [ebp - 0xd54]
test eax, eax
je 0x10083450
push eax
mov eax, dword [ebx + 0x1c]
call eax
test eax, eax
je 0x10083450
push 0
push 0
push 0
push eax
mov eax, dword [ebx + 0x20]
call eax
test eax, eax
je 0x10083450
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10083450
cmp dword [eax + 0xc], 0
je 0x10083450
mov eax, dword [ecx + 4]
test eax, eax
je 0x10083450
mov esi, dword [eax + 0xc]
test esi, esi
je 0x10083450
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 0x24]
add esp, 0xc
add esi, 0x30
test eax, eax
je 0x10083450
push 0
push 0
push 3
push esi
push 1
call eax
cmp eax, 0x200
ja 0x10083450
push 0x200
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebx + 0x24]
push 3
push esi
push 1
call eax
cmp eax, 0x200
jae 0x100833c4
xor ecx, ecx
mov word [ebp + eax*2 - 0x410], cx
push ecx
lea eax, [ebp - 0xc10]
push eax
push 0x101beb80
lea eax, [ebp - 0x410]
push eax
call fcn.10082f80
test al, al
jne 0x100833fe
push ecx
lea eax, [ebp - 0xc10]
push eax
push 0x101bebc0
lea eax, [ebp - 0x410]
push eax
call fcn.10082f80
test al, al
je 0x10083450
lea edx, [ebp - 0xc10]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10083407
mov ecx, dword [ebp - 0xd44]
lea eax, [ebp - 0xc10]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10004820
mov dword [edi], 0
lea eax, [ebp - 0xd74]
mov dword [ebp - 0xd58], 2
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, dword [ebx + 0x18]
push 0xffffffffffffffff
call eax
jmp 0x10083461
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x1008342f
mov dword [edi], 0xa80038
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101611d3
mov esp, ebp
pop ebp
ret 0xc