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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481f70
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x4a81fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x1c], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
call fcn.00420cd0
add esp, 4
test al, al
je 0x40d659
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d3f1
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40d3f1
mov eax, dword [eax]
xor edx, edx
push ecx
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], dx
call fcn.00410190
jmp 0x40d405
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
push 0x498458
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0040eee0
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040ec40
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x40d467
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d45d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d6e2
push edx
push ecx
call fcn.0044b829
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x40d4b8
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d4ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d6e7
push edx
push ecx
call fcn.0044b829
add esp, 8
lea eax, [ebp - 0x1c]
push eax
call fcn.00420bb0
add esp, 4
test al, al
je 0x40d659
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040de10
push str.livehime_comspec.exe
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.0040eee0
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040ec40
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x40d539
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d52f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d6ec
push edx
push ecx
call fcn.0044b829
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x40d58a
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d580
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d6f1
push edx
push ecx
call fcn.0044b829
add esp, 8
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040de10
cmp dword [eax + 0x14], 8
jb 0x40d59e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x20]
cmp eax, 0xffffffff
sete bl
cmp edx, 8
jb 0x40d5e5
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d5db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d6f6
push edx
push ecx
call fcn.0044b829
add esp, 8
test bl, bl
je 0x40d659
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040de10
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x40d601
mov eax, dword [eax]
sub esp, 0xc
lea ecx, [ebp - 0x100]
push eax
call fcn.0040de70
lea ecx, [ebp - 0x100]
call fcn.0040d710
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x40d659
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d64f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d6fb
push edx
push ecx
call fcn.0044b829
add esp, 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d68a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40d68a
mov eax, dword [eax]
xor edx, edx
push ecx
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
push eax
mov word [esi], dx
call fcn.00410190
mov eax, dword [ebp - 0x18]
jmp 0x40d69d
xor ecx, ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], cx
mov dword [ebp - 0x1c], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
test eax, eax
je 0x40d6c5
cmp byte [ebp - 0x14], 0
je 0x40d6c5
push eax
call dword [sym.imp.libcef.dll_cef_string_utf16_clear]
add esp, 4
push 0xc
push dword [ebp - 0x18]
call fcn.0044b829
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b7e8
mov esp, ebp
pop ebp
ret
call fcn.00466586
call fcn.00466586
call fcn.00466586
call fcn.00466586
call fcn.00466586
call fcn.00466586
int3