Function at 0x100d1293
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push 0x694
mov eax, 0x100ecb4b
call fcn.10001b03
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x678], ebx
mov eax, dword [ebp + 8]
push 0x1012ec40
push ebx
mov dword [ebp - 0x68c], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
pop ecx
pop ecx
test eax, eax
je 0x100d12e2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 2
pop ebx
mov dword [eax], ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___doserrno]
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x100d1611
xor ecx, ecx
cmp word [ebx + 2], 0x3a
mov dword [ebp - 0x694], ecx
jne 0x100d130f
movzx eax, word [ebx]
test ax, ax
je 0x100d12ff
cmp word [ebx + 4], cx
je 0x100d12c7
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
movzx eax, ax
pop ecx
sub eax, 0x60
jmp 0x100d1315
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__getdrive]
mov edi, dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x684], eax
lea eax, [ebp - 0x670]
push eax
push ebx
call edi
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
jne 0x100d1503
push 0xffffffffffffffff
xor eax, eax
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
movzx ecx, word [ebp - 0x218]
lea eax, [ebp - 0x218]
add esp, 0x10
mov edx, eax
push 2
pop ebx
test cx, cx
je 0x100d1384
xor edi, edi
mov ecx, eax
mov edx, eax
add eax, ebx
cmp word [eax], di
jne 0x100d1370
movzx ecx, word [ecx]
mov edi, dword [sym.imp.kernel32.dll_FindFirstFileW]
push 0x5c
pop eax
cmp ax, cx
jne 0x100d1391
xor eax, eax
mov word [edx], ax
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
jne 0x100d1503
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x68c], eax
xor edi, edi
push 0x1012ec38
push dword [ebp - 0x678]
xor eax, eax
inc edi
mov dword [ebp - 0x680], eax
mov dword [ebp - 0x67c], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
pop ecx
pop ecx
test eax, eax
je 0x100d1471
push 0x104
push dword [ebp - 0x678]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x674], edx
test edx, edx
je 0x100d1471
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x69c], eax
mov ax, word [ecx]
add ecx, ebx
cmp ax, word [ebp - 0x694]
jne 0x100d141a
sub ecx, dword [ebp - 0x69c]
sar ecx, 1
cmp ecx, 3
je 0x100d144c
mov ecx, edx
call fcn.100d1619
mov dword [ebp - 0x680], eax
test eax, eax
je 0x100d1471
mov edx, dword [ebp - 0x674]
push edx
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, edi
ja 0x100d147b
cmp dword [ebp - 0x680], 0
je 0x100d1471
push dword [ebp - 0x674]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100d147b
xor eax, eax
mov dword [ebp - 0x67c], eax
jmp 0x100d147d
mov eax, edi
test eax, eax
jne 0x100d14ab
cmp dword [ebp - 0x68c], 5
jne 0x100d14ab
push dword [ebp - 0x678]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
mov eax, dword [ebp - 0x67c]
cmp ecx, 0xffffffff
je 0x100d14ae
test cl, 0x10
cmovne eax, edi
jmp 0x100d14ae
push 0x10
pop ecx
test eax, eax
jne 0x100d14bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x100d12d0
xor edx, edx
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edx
xor eax, eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edx
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edx
mov dword [ebp - 0x670], ecx
mov dword [ebp - 0x654], edx
mov dword [ebp - 0x650], edx
mov word [ebp - 0x644], ax
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edx
jmp 0x100d15cd
xor eax, eax
xor edi, edi
mov dword [esi + 0x2c], eax
inc edi
lea eax, [ebp - 0x65c]
mov dword [esi + 0x28], edi
push eax
lea eax, [ebp - 0x6a0]
push eax
call fcn.1004ba3f
mov edx, dword [ebp - 0x68c]
lea ebx, [esi + 0x48]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
test edx, edx
je 0x100d1549
mov eax, dword [ebp - 0x65c]
mov ecx, dword [ebp - 0x658]
mov dword [edx], eax
mov dword [edx + 4], ecx
xor eax, eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
cmp dword [ebp - 0x664], eax
jne 0x100d1565
cmp dword [ebp - 0x660], eax
jne 0x100d1565
mov eax, ebx
jmp 0x100d1578
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x690]
push eax
call fcn.1004ba3f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], eax
cmp dword [ebp - 0x66c], eax
jne 0x100d159b
cmp dword [ebp - 0x668], eax
je 0x100d15b0
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x6a0]
push eax
call fcn.1004ba3f
mov ebx, eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
push dword [ebp - 0x674]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, dword [ebp - 0x670]
mov edx, dword [ebp - 0x678]
call fcn.100d16da
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x650]
mov dword [esi + 0x1c], eax
xor eax, eax
mov word [esi + 0xc], ax
mov dword [esi + 0x12], eax
mov eax, dword [ebp - 0x684]
dec eax
mov word [esi + 0x10], di
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x670]
shr eax, 1
xor eax, dword [esi + 0x58]
and eax, edi
xor dword [esi + 0x58], eax
xor eax, eax
call fcn.10001b39
ret 4