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

Disassembly:
push 0xffffffffffffffff
push 0x644bc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd7c
mov eax, dword [0x6fca20]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x18], ecx
jne 0x4c54b2
mov eax, 0x6fca24
push ebp
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
call fcn.00401f20
mov eax, dword [0x6fca98]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0xd94], ebx
je 0x4c5671
mov eax, dword [0x6fca68]
cmp eax, ebx
je 0x4c5671
push eax
call dword [0x6fc26c]
test eax, eax
je 0x4c5671
mov eax, dword [0x6fca68]
push eax
call ebp
cmp eax, 0xffffffff
je 0x4c5524
mov ecx, dword [0x6fca68]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401f20
jmp 0x4c5708
mov edx, dword [0x6fca68]
push 0x5c
push edx
call fcn.00609ba3
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4c5671
push ebx
lea ecx, [esp + 0x30]
add esi, 2
call fcn.00449860
push str._languages_
lea ecx, [esp + 0xac]
mov byte [esp + 0xd98], 1
call fcn.00622f13
push esi
lea ecx, [esp + 0xa8]
call fcn.00622f3a
mov eax, dword [0x6fca68]
lea ecx, [esp + 0x90]
push eax
call fcn.00401f20
mov ecx, dword [esp + 0x1c]
push 0x6fd7a4
mov byte [esp + 0xa0], 1
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x90]
mov dword [esp + 0x8c], edx
call fcn.00622ec3
lea ecx, [esp + 0x2c]
call fcn.006226c5
cmp eax, 1
jne 0x4c55cd
mov eax, dword [0x6fca68]
lea ecx, [esp + 0x10]
push eax
call fcn.00401f20
mov edi, 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0xd94], 8
call fcn.005c6d50
lea ecx, [esp + 0xac]
mov byte [esp + 0xd94], 7
call fcn.00622d8a
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd94], 6
call fcn.00622d8a
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd94], 5
call fcn.00622d8a
lea ecx, [esp + 0xa0]
mov byte [esp + 0xd94], 4
call fcn.00622d8a
lea ecx, [esp + 0x90]
mov byte [esp + 0xd94], 3
call fcn.00401070
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd94], 2
call fcn.00622d8a
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd94], bl
call fcn.00622306
cmp edi, ebx
jne 0x4c5708
mov ecx, str.grabber.chm
test ecx, ecx
je 0x4c5708
push ecx
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x4c5708
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4c56a0
push eax
call fcn.00609a4e
add esp, 4
mov esi, eax
jmp 0x4c56a2
xor esi, esi
push str.grabber.chm
call fcn.00609a4e
add eax, esi
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4c5708
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4c56e0
push eax
push esi
call fcn.00609a95
push str.grabber.chm
push esi
call fcn.00609a6b
add esp, 0x10
jmp 0x4c56ee
push str.grabber.chm
push esi
call fcn.00609a95
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00401070
push esi
mov dword [esp + 0x14], esi
call fcn.00609a4e
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4c5714
lea eax, [esp + 0x14]
push eax
call ebp
cmp eax, 0xffffffff
pop ebp
jne 0x4c58f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4c58f3
push ebx
lea ecx, [esp + 0x2c]
call fcn.00449860
push str._data_v4_
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd94], 9
call fcn.00622f13
push 0x6d2430
lea ecx, [esp + 0xa4]
call fcn.00622f13
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x4c5770
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x90]
call fcn.00401f20
mov eax, dword [esp + 0x18]
push 0x6fd7a4
mov byte [esp + 0x9c], 1
mov ecx, dword [eax + 4]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x8c]
call fcn.00622ec3
lea ecx, [esp + 0x28]
call fcn.006226c5
cmp eax, 1
je 0x4c5857
lea ecx, [esp + 0xb0]
mov byte [esp + 0xd90], 0x10
call fcn.005c6d50
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd90], 0xf
call fcn.00622d8a
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd90], 0xe
call fcn.00622d8a
lea ecx, [esp + 0xa0]
mov byte [esp + 0xd90], 0xd
call fcn.00622d8a
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd90], 0xc
call fcn.00622d8a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd90], 0xb
call fcn.00401070
lea ecx, [esp + 0x88]
mov byte [esp + 0xd90], 0xa
call fcn.00622d8a
lea ecx, [esp + 0x28]
mov byte [esp + 0xd90], bl
call fcn.00622306
jmp 0x4c5a0c
lea ecx, [esp + 0xb0]
mov byte [esp + 0xd90], 0x17
call fcn.005c6d50
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd90], 0x16
call fcn.00622d8a
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd90], 0x15
call fcn.00622d8a
lea ecx, [esp + 0xa0]
mov byte [esp + 0xd90], 0x14
call fcn.00622d8a
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd90], 0x13
call fcn.00622d8a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd90], 0x12
call fcn.00401070
lea ecx, [esp + 0x88]
mov byte [esp + 0xd90], 0x11
call fcn.00622d8a
lea ecx, [esp + 0x28]
mov byte [esp + 0xd90], bl
call fcn.00622306
mov edi, dword [esp + 0xd98]
cmp edi, ebx
je 0x4c59df
mov edx, 0x6d23e8
test edx, edx
je 0x4c5999
push edx
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x4c5999
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4c5931
push eax
call fcn.00609a4e
add esp, 4
mov esi, eax
jmp 0x4c5933
xor esi, esi
push 0x6d23e8
call fcn.00609a4e
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4c5999
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4c5971
push eax
push esi
call fcn.00609a95
push 0x6d23e8
push esi
call fcn.00609a6b
add esp, 0x10
jmp 0x4c597f
push 0x6d23e8
push esi
call fcn.00609a95
add esp, 8
lea ecx, [esp + 0xc]
call fcn.00401070
push esi
mov dword [esp + 0x10], esi
call fcn.00609a4e
add esp, 4
mov dword [esp + 0x14], eax
push ebx
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], bx
call fcn.004027e0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xd90], 0x18
cmp eax, ebx
jne 0x4c59c5
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.0046c750
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd90], bl
call fcn.00401070
cmp dword [0x6fcf10], ebx
je 0x4c5a0c
mov esi, dword [esp + 0xc]
cmp esi, ebx
jne 0x4c59f3
lea esi, [esp + 0x10]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00623b6b
mov ecx, dword [eax + 0x1c]
push ebx
push ebx
push esi
push ecx
call dword [0x6fcf10]
lea ecx, [esp + 0xc]
mov dword [esp + 0xd90], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0xd88]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xd88
ret 4