Function at 0x10188fa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x10254be4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x280], eax
push 0x38
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, 1
mov eax, dword [ebp + 0xc]
mov word [eax + 8], dx
push 4
push 0x10253ee4
mov ecx, dword [ebp - 0x280]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10189003
mov edx, dword [ebp - 0x280]
add edx, 8
mov dword [ebp - 0x280], edx
push 0x10253ef0
mov eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
add esp, 8
test eax, eax
je 0x10189030
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 2
or eax, 0xffffffff
jmp 0x101892a0
lea ecx, [ebp - 0x28]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x101890f2
mov eax, dword [ebp - 0x28]
and eax, 0x10
je 0x1018907b
mov ecx, dword [ebp + 8]
push ecx
call fcn.10188e10
add esp, 4
test eax, eax
je 0x10189068
or eax, 0xffffffff
jmp 0x101892a0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
jmp 0x10189097
xor edx, edx
mov eax, dword [ebp - 0xc]
mov cl, 0x20
call fcn.10194a70
xor ecx, ecx
or eax, dword [ebp - 8]
or edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.10188cd0
add esp, 8
mov ecx, dword [ebp + 0xc]
mov word [ecx + 6], ax
lea edx, [ebp - 0x1c]
push edx
call fcn.10188bf0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
lea edx, [ebp - 0x14]
push edx
call fcn.10188bf0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
lea edx, [ebp - 0x24]
push edx
call fcn.10188bf0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
jmp 0x1018921b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 2
je 0x10189122
cmp dword [ebp - 0x27c], 0x7b
je 0x10189122
cmp dword [ebp - 0x27c], 3
je 0x10189122
cmp dword [ebp - 0x27c], 0x35
jne 0x10189143
mov edx, dword [ebp - 0x27c]
push edx
call sym.ruby.dll_rb_w32_map_errno
add esp, 4
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x101892a0
lea eax, [ebp - 0x278]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x288], 0xffffffff
je 0x101891fa
mov edx, dword [ebp - 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.10188cd0
add esp, 8
mov edx, dword [ebp + 0xc]
mov word [edx + 6], ax
lea eax, [ebp - 0x26c]
push eax
call fcn.10188bf0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
lea edx, [ebp - 0x264]
push edx
call fcn.10188bf0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
lea edx, [ebp - 0x274]
push edx
call fcn.10188bf0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
xor edx, edx
mov eax, dword [ebp - 0x25c]
mov cl, 0x20
call fcn.10194a70
xor ecx, ecx
or eax, dword [ebp - 0x258]
or edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
jmp 0x1018921b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.ruby.dll_rb_w32_map_errno
add esp, 4
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x101892a0
push 0x103
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswctype]
add esp, 8
test eax, eax
je 0x10189278
mov eax, 2
shl eax, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
cmp edx, 0x3a
jne 0x10189278
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
add esp, 4
movzx ecx, ax
sub ecx, 0x41
mov dword [ebp - 0x284], ecx
jmp 0x10189287
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__getdrive]
sub eax, 1
mov dword [ebp - 0x284], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x284]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x284]
mov dword [ecx], edx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101949b1
mov esp, ebp
pop ebp
ret