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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bffdd
mov eax, dword fs:[0]
push eax
sub esp, 0xd88
mov eax, dword [0x10221008]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0xd4c], eax
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
cmp dword [esi + 0x10], 0
je 0x100d04b4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100d01c0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d04b4
cmp dword [ebx + 0x18], 0
jne 0x100d01e2
mov dword [edi + 4], 0xa8003c
jmp 0x100d04ba
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
movlpd qword [ebp - 0xd78], xmm0
mov dword [ebp - 0xd6c], 0
movlpd qword [ebp - 0xd5c], xmm0
mov dword [ebp - 0xd50], 0
movlpd qword [ebp - 0xd88], xmm0
mov dword [ebp - 0xc24], 0xaac56b
mov dword [ebp - 0xc20], 0x11d0cd44
mov dword [ebp - 0xc1c], 0xc000c28c
mov dword [ebp - 0xc18], 0xee95c24f
mov dword [ebp - 0xd90], 0x10
jb 0x100d024b
mov esi, dword [esi]
lea eax, [ebp - 0xd90]
mov dword [ebp - 0xd8c], esi
mov ecx, 0x102276d0
mov dword [ebp - 0xd7c], 0x30
mov dword [ebp - 0xd70], 2
mov dword [ebp - 0xd54], 0x100
mov dword [ebp - 0xd68], 1
mov dword [ebp - 0xd60], 1
mov dword [ebp - 0xd64], eax
mov dword [ebp - 0xd48], 0x102276d0
call fcn.100cc560
mov dword [ebp - 4], 0
cmp dword [0x102276cc], 0
jne 0x100d02ea
push 0x34
call fcn.1018b705
mov esi, eax
add esp, 4
mov dword [ebp - 0xd80], esi
push 2
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
mov byte [ebp - 4], 1
add esp, 8
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 0
mov dword [0x102276cc], esi
lea ecx, [ebp - 0xd48]
mov dword [ebp - 4], 0xffffffff
call fcn.100cc8a0
lea eax, [ebp - 0xd44]
push eax
call fcn.100d1b60
test al, al
je 0x100d0321
cmp dword [ebp - 0xd40], 6
jb 0x100d0321
or dword [ebp - 0xd54], 0x1200
jmp 0x100d0328
or dword [ebp - 0xd54], 0x10
lea eax, [ebp - 0xd7c]
push eax
lea eax, [ebp - 0xc24]
push eax
mov eax, dword [ebx + 0x18]
push 0xffffffffffffffff
call eax
push 0x800
mov esi, eax
lea eax, [ebp - 0xc14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp esi, 0x800b0100
je 0x100d0482
mov eax, dword [ebp - 0xd5c]
test eax, eax
je 0x100d04a9
push eax
mov eax, dword [ebx + 0x1c]
call eax
test eax, eax
je 0x100d04a9
push 0
push 0
push 0
push eax
mov eax, dword [ebx + 0x20]
call eax
test eax, eax
je 0x100d04a9
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100d04a9
cmp dword [eax + 0xc], 0
je 0x100d04a9
mov eax, dword [ecx + 4]
test eax, eax
je 0x100d04a9
mov esi, dword [eax + 0xc]
test esi, esi
je 0x100d04a9
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 0x24]
add esp, 0xc
add esi, 0x30
test eax, eax
je 0x100d04a9
push 0
push 0
push 3
push esi
push 1
call eax
cmp eax, 0x200
ja 0x100d04a9
push 0x200
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebx + 0x24]
push 3
push esi
push 1
call eax
cmp eax, 0x200
jae 0x100d041d
xor ecx, ecx
mov word [ebp + eax*2 - 0x414], cx
push ecx
lea eax, [ebp - 0xc14]
push eax
push 0x101f1ba8
lea eax, [ebp - 0x414]
push eax
call fcn.100cffd0
test al, al
jne 0x100d0457
push ecx
lea eax, [ebp - 0xc14]
push eax
push 0x101f1ba0
lea eax, [ebp - 0x414]
push eax
call fcn.100cffd0
test al, al
je 0x100d04a9
lea edx, [ebp - 0xc14]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100d0460
mov ecx, dword [ebp - 0xd4c]
lea eax, [ebp - 0xc14]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10004a70
mov dword [edi], 0
lea eax, [ebp - 0xd7c]
mov dword [ebp - 0xd60], 2
push eax
lea eax, [ebp - 0xc24]
push eax
mov eax, dword [ebx + 0x18]
push 0xffffffffffffffff
call eax
jmp 0x100d04ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x100d0488
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 - 0x14]
xor ecx, ebp
call fcn.1018b6f4
mov esp, ebp
pop ebp
ret 0xc