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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501b39
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x870], edi
mov dword [ebp - 0x868], 0
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00424e80
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push 0
cmovae eax, dword [ebp + 0xc]
push 0x2000000
push 3
push 0
push 7
push 0x80000000
push eax
mov dword [ebp - 0x868], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x86c], ecx
cmp ecx, 0xffffffff
je 0x492905
mov dword [ebp - 0x1c], 0
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 2
nop dword [eax]
mov eax, dword [esi]
push eax
push 0
push 0
push ecx
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov dword [ebp - 0x864], eax
test eax, eax
je 0x49279c
push eax
push edi
call fcn.00424d00
add esp, 8
test al, al
je 0x49279c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x492783
mov eax, dword [edi]
push dword [esi]
push dword [ebp - 0x864]
push eax
push dword [ebp - 0x86c]
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
test eax, eax
jne 0x4927b2
add esi, 4
lea eax, [ebp - 0x10]
cmp esi, eax
je 0x4928b3
mov ecx, dword [ebp - 0x86c]
jmp 0x492750
mov eax, dword [edi + 0x10]
mov ecx, edi
dec eax
mov dword [edi + 0x10], eax
cmp dword [edi + 0x14], 8
jb 0x4927c3
mov ecx, dword [edi]
xor edx, edx
test byte [ebp - 0x30], 2
mov word [ecx + eax*2], dx
je 0x4928b3
mov esi, 0x41
mov dword [ebp - 0x864], esi
nop
push 0x800
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004d65b0
add esp, 0xc
mov word [ebp - 0x30], si
lea eax, [ebp - 0x830]
mov dword [ebp - 0x2e], 0x3a
push 0x400
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x49285d
lea esi, [ebp - 0x830]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x492824
sub esi, ecx
mov eax, edi
sar esi, 1
cmp dword [edi + 0x14], 8
jb 0x49283d
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x830]
push ecx
push 0
push dword [edi + 0x10]
push eax
call fcn.0047cc20
add esp, 0x14
test eax, eax
je 0x492870
mov esi, dword [ebp - 0x864]
inc esi
mov dword [ebp - 0x864], esi
cmp si, 0x5a
jbe 0x4927e0
jmp 0x4928b3
mov eax, dword [ebp - 0x864]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x5c005c
lea edx, [ecx + 2]
mov dword [ebp - 0x1c], 0x5c003f
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], 0x3a
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492895
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
push esi
push 0
mov ecx, edi
call fcn.004c75c0
push dword [ebp - 0x86c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x492b8e
push 0x5b64a8
mov dword [ebp - 0x1c], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x18], str.WIN32_CloseHandle
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x1c]
push eax
push 3
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x1f
call fcn.004a4b70
add esp, 0x18
jmp 0x492b8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x492be1
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ecx
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x860]
push eax
push 4
push 0x5b698c
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x870]
call fcn.0047cf90
mov dword [ebp - 0x868], 0x21
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 2
lea eax, [eax*2 + str._UNC_]
test eax, eax
je 0x492982
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp + 0xc]
call fcn.004cf880
mov ecx, eax
mov eax, 0x23
jmp 0x4929ae
push 3
push 0x5b69ac
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00422d80
lea ecx, [ebp - 0x28]
mov eax, 0x25
mov dword [ebp - 0x848], 0
xor edx, edx
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x868], eax
mov dword [ebp - 0x864], eax
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x848], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x838], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
test al, 4
je 0x492a23
and eax, 0xfffffffb
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x864], eax
mov dword [ebp - 0x868], eax
call fcn.00421b80
mov eax, dword [ebp - 0x864]
mov dword [ebp - 4], 2
test al, 2
je 0x492a48
and eax, 0xfffffffd
lea ecx, [ebp - 0x888]
mov dword [ebp - 0x864], eax
mov dword [ebp - 0x868], eax
call fcn.00421b80
mov byte [ebp - 4], 4
lea esi, [ebp - 0x860]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x492a5c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x492b5c
add esi, 0x18
lea eax, [ebp - 0x830]
cmp esi, eax
jne 0x492a52
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push dword [ebp + 0x1c]
mov esi, dword [ebp - 0x864]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
or esi, 0x10
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x868], esi
call fcn.00494410
and esi, 0xffffffef
mov dword [ebp - 4], 4
or esi, 8
mov dword [ebp - 0x868], esi
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
cmovae eax, dword [ebp - 0x28]
push eax
push str.path
call fcn.004a4430
mov ecx, dword [ebp - 0x14]
add esp, 0x14
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x492b25
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x492b1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x492be6
push ecx
push edx
call fcn.004d36cd
add esp, 8
push 0x5b67a8
push dword [ebp - 0x30]
mov dword [ebp - 0x1c], str.S:KBT_third_partykbtkbt_platform_win32.cpp
push 3
sub esp, 0xc
mov dword [ebp - 0x18], str.GetExtendedLengthPath
movq xmm0, qword [ebp - 0x1c]
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x476
call fcn.004a4b70
add esp, 0x18
jmp 0x492b75
cmp edi, esi
je 0x492b75
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x492b6a
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.00431340
push fcn.00421b80
push 2
push 0x18
lea eax, [ebp - 0x860]
mov byte [ebp - 4], 1
push eax
call fcn.004d420c
mov ecx, dword [ebp + 0x20]
cmp ecx, 8
jb 0x492bc4
mov edx, dword [ebp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x492bba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x492beb
push ecx
push edx
call fcn.004d36cd
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3b35
mov esp, ebp
pop ebp
ret
call fcn.00421be0
call fcn.004d826f
call fcn.004d826f
int3