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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c204d
mov eax, dword fs:[0]
push eax
sub esp, 0xd88
mov eax, dword [0x10223008]
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 0x100d2294
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100d1fa0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d2294
cmp dword [ebx + 0x18], 0
jne 0x100d1fc2
mov dword [edi + 4], 0xa8003c
jmp 0x100d229a
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 0x100d202b
mov esi, dword [esi]
lea eax, [ebp - 0xd90]
mov dword [ebp - 0xd8c], esi
mov ecx, 0x102296e0
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], 0x102296e0
call fcn.100ce310
mov dword [ebp - 4], 0
cmp dword [0x102296dc], 0
jne 0x100d20ca
push 0x34
call fcn.1018d5b5
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 [0x102296dc], esi
lea ecx, [ebp - 0xd48]
mov dword [ebp - 4], 0xffffffff
call fcn.100ce650
lea eax, [ebp - 0xd44]
push eax
call fcn.100d3aa0
test al, al
je 0x100d2101
cmp dword [ebp - 0xd40], 6
jb 0x100d2101
or dword [ebp - 0xd54], 0x1200
jmp 0x100d2108
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 0x100d2262
mov eax, dword [ebp - 0xd5c]
test eax, eax
je 0x100d2289
push eax
mov eax, dword [ebx + 0x1c]
call eax
test eax, eax
je 0x100d2289
push 0
push 0
push 0
push eax
mov eax, dword [ebx + 0x20]
call eax
test eax, eax
je 0x100d2289
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100d2289
cmp dword [eax + 0xc], 0
je 0x100d2289
mov eax, dword [ecx + 4]
test eax, eax
je 0x100d2289
mov esi, dword [eax + 0xc]
test esi, esi
je 0x100d2289
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 0x100d2289
push 0
push 0
push 3
push esi
push 1
call eax
cmp eax, 0x200
ja 0x100d2289
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 0x100d21fd
xor ecx, ecx
mov word [ebp + eax*2 - 0x414], cx
push ecx
lea eax, [ebp - 0xc14]
push eax
push 0x101f3dc0
lea eax, [ebp - 0x414]
push eax
call fcn.100d1db0
test al, al
jne 0x100d2237
push ecx
lea eax, [ebp - 0xc14]
push eax
push 0x101f3db8
lea eax, [ebp - 0x414]
push eax
call fcn.100d1db0
test al, al
je 0x100d2289
lea edx, [ebp - 0xc14]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100d2240
mov ecx, dword [ebp - 0xd4c]
lea eax, [ebp - 0xc14]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10004a60
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 0x100d229a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x100d2268
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.1018d5a4
mov esp, ebp
pop ebp
ret 0xc