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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c005d
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 0x100d04e4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100d01f0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d04e4
cmp dword [ebx + 0x18], 0
jne 0x100d0212
mov dword [edi + 4], 0xa8003c
jmp 0x100d04ea
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 0x100d027b
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 0x100d031a
push 0x34
call fcn.1018b785
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.100d1cf0
test al, al
je 0x100d0351
cmp dword [ebp - 0xd40], 6
jb 0x100d0351
or dword [ebp - 0xd54], 0x1200
jmp 0x100d0358
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 0x100d04b2
mov eax, dword [ebp - 0xd5c]
test eax, eax
je 0x100d04d9
push eax
mov eax, dword [ebx + 0x1c]
call eax
test eax, eax
je 0x100d04d9
push 0
push 0
push 0
push eax
mov eax, dword [ebx + 0x20]
call eax
test eax, eax
je 0x100d04d9
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100d04d9
cmp dword [eax + 0xc], 0
je 0x100d04d9
mov eax, dword [ecx + 4]
test eax, eax
je 0x100d04d9
mov esi, dword [eax + 0xc]
test esi, esi
je 0x100d04d9
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 0x100d04d9
push 0
push 0
push 3
push esi
push 1
call eax
cmp eax, 0x200
ja 0x100d04d9
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 0x100d044d
xor ecx, ecx
mov word [ebp + eax*2 - 0x414], cx
push ecx
lea eax, [ebp - 0xc14]
push eax
push 0x101f1ba0
lea eax, [ebp - 0x414]
push eax
call fcn.100d0000
test al, al
jne 0x100d0487
push ecx
lea eax, [ebp - 0xc14]
push eax
push 0x101f1b98
lea eax, [ebp - 0x414]
push eax
call fcn.100d0000
test al, al
je 0x100d04d9
lea edx, [ebp - 0xc14]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100d0490
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 0x100d04ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x100d04b8
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.1018b774
mov esp, ebp
pop ebp
ret 0xc