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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5019c6
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x300]
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
push 0x250
mov dword [ebp - 0x18], 0
push 0
push eax
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], 0
call fcn.004d65b0
movaps xmm0, xmmword [0x5b7e10]
lea eax, [ebp - 0x300]
add esp, 0xc
mov dword [ebp - 0xb0], 0
mov ecx, ebx
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0x98], 0
push eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0
call fcn.004803c0
lea ecx, [ebp - 0x300]
call fcn.00405150
mov byte [ebp - 0x11], 0
test edi, edi
je 0x490fed
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x490fed
test al, 0x10
je 0x490f81
lea ecx, [ebx + 0x2b0]
mov byte [ebx + 0x2c0], 0
mov eax, dword [ecx + 4]
xorps xmm0, xmm0
mov byte [ebp - 0x11], 1
movlpd qword [ebp - 0x1c], xmm0
cmp eax, dword [ecx + 8]
je 0x490eab
mov dword [eax], 0
mov dword [eax + 4], 0
add dword [ecx + 4], 8
jmp 0x490eb5
lea edx, [ebp - 0x1c]
push edx
push eax
call fcn.0047c870
sub esp, 0x18
mov ecx, esp
push edi
call fcn.0047cf40
lea eax, [ebp - 0x38]
push eax
call fcn.00491f60
add esp, 0x1c
lea esi, [ebx + 0x268]
mov ecx, esi
push eax
call fcn.00480350
lea ecx, [ebp - 0x38]
call fcn.00421b80
cmp dword [ebx + 0x278], 0
je 0x490f09
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x490ef5
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x490f09
push 0x5c
mov ecx, esi
call fcn.00431680
sub esp, 0x18
mov ecx, esp
push edi
call fcn.0047cf40
lea eax, [ebp - 0x38]
push eax
call fcn.004926a0
add esp, 0x1c
lea edi, [ebx + 0x250]
mov ecx, edi
push eax
call fcn.00480350
lea ecx, [ebp - 0x38]
call fcn.00421b80
cmp dword [ebx + 0x260], 0
je 0x490f5d
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x490f49
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x490f5d
push 0x5c
mov ecx, edi
call fcn.00431680
cmp dword [esi + 0x14], 8
jb 0x490f65
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4910ab
mov byte [ebx + 0x2c5], 1
jmp 0x4910ab
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.00494380
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x490f9f
mov eax, dword [eax]
push eax
push str.path
call fcn.004a4430
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00404db0
push str.input_is_not_a_directory
push 0xffffffffffffffff
push 1
sub esp, 0xc
mov dword [ebp - 0x20], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov eax, esp
mov dword [ebp - 0x1c], str.FileIterator_Create
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x49c
jmp 0x4910a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push edi
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x18], 1
call fcn.00494410
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
push str.path
call fcn.004a4430
mov ecx, dword [ebp - 0x24]
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x491078
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x49106e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4910ca
push ecx
push edx
call fcn.004d36cd
add esp, 8
push 0x5b69fc
push esi
push 3
sub esp, 0xc
mov dword [ebp - 0x20], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov ecx, esp
mov dword [ebp - 0x1c], str.FileIterator_Create
movq xmm0, qword [ebp - 0x20]
movq qword [ecx], xmm0
mov dword [ecx + 8], 0x4a3
call fcn.004a4b70
add esp, 0x18
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3b35
mov esp, ebp
pop ebp
ret
call fcn.004d826f
int3