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

Disassembly:
push 0xffffffffffffffff
push 0x651a9c
mov eax, dword fs:[0]
push eax
sub esp, 0xdf0
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0xdec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0xe04]
mov dword fs:[0], eax
mov eax, dword [esp + 0xe18]
mov dword [esp + 0x14], eax
mov eax, dword [0x75dc58]
xor ebx, ebx
mov ebp, ecx
cmp eax, ebx
jne 0x4c6998
mov eax, 0x75dc5c
xor ecx, ecx
mov word [esp + 0x1c], cx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
call fcn.004017f0
mov dword [esp + 0xe0c], ebx
xor edi, edi
cmp dword [0x75dd30], ebx
je 0x4c6abb
mov edx, dword [0x75dcf8]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4c6abb
mov eax, dword [0x75dcf8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c6a01
mov ecx, dword [0x75dcf8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004017f0
jmp 0x4c6ac9
mov edx, dword [0x75dcf8]
push 0x5c
push edx
call fcn.0061fc83
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4c6abb
push ebx
lea ecx, [esp + 0x34]
add esi, 2
call fcn.00446260
mov byte [esp + 0xe0c], 1
push str._languages_
lea ecx, [esp + 0xc8]
call fcn.0054f250
push esi
lea ecx, [esp + 0xc4]
call fcn.0040e3c0
mov eax, dword [0x75dcf8]
push eax
lea ecx, [esp + 0xb0]
call fcn.004017f0
mov ecx, dword [ebp + 4]
mov dword [esp + 0xa4], ecx
push 0x75eca4
lea ecx, [esp + 0xac]
mov byte [esp + 0xbc], 1
call fcn.00405930
lea ecx, [esp + 0x30]
call fcn.005f6434
cmp eax, 1
jne 0x4c6aa7
mov edx, dword [0x75dcf8]
push edx
lea ecx, [esp + 0x1c]
call fcn.004017f0
mov edi, 1
mov byte [esp + 0xe0c], bl
lea ecx, [esp + 0x30]
call fcn.00446370
cmp edi, ebx
jne 0x4c6ac9
push str.idman.chm
lea ecx, [esp + 0x1c]
call fcn.00405340
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4c6ad5
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c6b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4c6b9b
push ebx
lea ecx, [esp + 0x34]
call fcn.00446260
mov byte [esp + 0xe0c], 2
push 9
push str._data_v4_
lea ecx, [esp + 0xcc]
call fcn.00402960
push 9
push 0x68bf68
lea ecx, [esp + 0xc8]
call fcn.00402960
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4c6b38
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xb0]
call fcn.004017f0
mov eax, dword [ebp + 4]
push 0x75eca4
lea ecx, [esp + 0xac]
mov dword [esp + 0xa8], eax
mov byte [esp + 0xbc], 1
call fcn.00405930
lea ecx, [esp + 0x30]
call fcn.005f6434
cmp eax, 1
je 0x4c6b8b
mov byte [esp + 0xe0c], bl
lea ecx, [esp + 0x30]
call fcn.00446370
jmp 0x4c6c26
mov byte [esp + 0xe0c], bl
lea ecx, [esp + 0x30]
call fcn.00446370
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4c6bf9
push 0x68bf60
lea ecx, [esp + 0x1c]
call fcn.00405340
xor ecx, ecx
push ebx
mov word [esp + 0x2c], cx
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.00401980
mov byte [esp + 0xe0c], 3
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x4c6bdf
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405340
mov byte [esp + 0xe0c], bl
lea ecx, [esp + 0x24]
call fcn.00401210
cmp dword [0x75e634], ebx
je 0x4c6c26
mov esi, dword [esp + 0x18]
cmp esi, ebx
jne 0x4c6c0d
lea esi, [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.005f9031
mov edx, dword [eax + 0x20]
push ebx
push ebx
push esi
push edx
call dword [0x75e634]
mov dword [esp + 0xe0c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00401210
mov ecx, dword [esp + 0xe04]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xdec]
xor ecx, esp
call fcn.0062016f
add esp, 0xdfc
ret 8