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

Disassembly:
push 0xffffffffffffffff
push 0x5bc259
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc88
mov eax, dword [0x682588]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
mov dword [esp + 0x14], ecx
jne 0x489151
mov eax, 0x68258c
push ebp
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
call fcn.00401ee0
mov eax, dword [0x6824ac]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0xca0], ebx
je 0x489321
mov eax, dword [0x68248c]
push eax
call fcn.00584816
add esp, 4
test eax, eax
je 0x489321
mov ecx, dword [0x68248c]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x4891bf
mov edx, dword [0x68248c]
lea ecx, [esp + 0x10]
push edx
call fcn.00401ee0
jmp 0x4893b8
mov eax, dword [0x68248c]
push 0x5c
push eax
call fcn.00584766
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x489321
push ebx
lea ecx, [esp + 0x24]
add esi, 2
call fcn.00434c50
push str._languages_
lea ecx, [esp + 0xa0]
mov byte [esp + 0xca4], 1
call fcn.005a0de6
push esi
lea ecx, [esp + 0x9c]
call fcn.005a0e0d
mov ecx, dword [0x68248c]
push ecx
lea ecx, [esp + 0x88]
call fcn.00401ee0
mov edx, dword [esp + 0x1c]
push 0x68340c
lea ecx, [esp + 0x84]
mov byte [esp + 0x94], 1
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
call fcn.005a0d96
lea ecx, [esp + 0x20]
call fcn.0059cbf3
cmp eax, 1
jne 0x489269
mov ecx, dword [0x68248c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401ee0
mov edi, 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0xca0], 9
call fcn.0054f610
lea ecx, [esp + 0xa4]
mov byte [esp + 0xca0], 8
call fcn.005a8769
lea ecx, [esp + 0xa0]
mov byte [esp + 0xca0], 7
call fcn.005a0c5d
lea ecx, [esp + 0x9c]
mov byte [esp + 0xca0], 6
call fcn.005a0c5d
lea ecx, [esp + 0x98]
mov byte [esp + 0xca0], 5
call fcn.005a0c5d
lea ecx, [esp + 0x94]
mov byte [esp + 0xca0], 4
call fcn.005a0c5d
lea ecx, [esp + 0x84]
mov byte [esp + 0xca0], 3
call fcn.00401070
lea ecx, [esp + 0x80]
mov byte [esp + 0xca0], 2
call fcn.005a0c5d
lea ecx, [esp + 0x20]
mov byte [esp + 0xca0], bl
call fcn.0059c834
cmp edi, ebx
jne 0x4893b8
mov edx, str.tutor.chm
test edx, edx
je 0x4893b8
push edx
call fcn.00584816
add esp, 4
test eax, eax
je 0x4893b8
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x489350
push eax
call fcn.00584816
add esp, 4
mov esi, eax
jmp 0x489352
xor esi, esi
push str.tutor.chm
call fcn.00584816
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.0059cff9
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4893b8
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x489390
push eax
push esi
call fcn.005849ba
push str.tutor.chm
push esi
call fcn.00584990
add esp, 0x10
jmp 0x48939e
push str.tutor.chm
push esi
call fcn.005849ba
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00401070
push esi
mov dword [esp + 0x14], esi
call fcn.00584816
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4893c4
lea eax, [esp + 0x14]
push eax
call ebp
pop edi
cmp eax, 0xffffffff
pop ebp
jne 0x4895ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4895ba
push ebx
lea ecx, [esp + 0x1c]
call fcn.00434c50
push str._data_v4_
lea ecx, [esp + 0x98]
mov byte [esp + 0xc9c], 0xa
call fcn.005a0de6
push 0x65e884
lea ecx, [esp + 0x94]
call fcn.005a0de6
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x489421
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x80]
call fcn.00401ee0
mov ecx, dword [esp + 0x14]
push 0x68340c
mov byte [esp + 0x8c], 1
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x78], edx
call fcn.005a0d96
lea ecx, [esp + 0x18]
call fcn.0059cbf3
cmp eax, 1
je 0x489510
lea ecx, [esp + 0xd8]
mov byte [esp + 0xc98], 0x12
call fcn.0054f610
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc98], 0x11
call fcn.005a8769
lea ecx, [esp + 0x98]
mov byte [esp + 0xc98], 0x10
call fcn.005a0c5d
lea ecx, [esp + 0x94]
mov byte [esp + 0xc98], 0xf
call fcn.005a0c5d
lea ecx, [esp + 0x90]
mov byte [esp + 0xc98], 0xe
call fcn.005a0c5d
lea ecx, [esp + 0x8c]
mov byte [esp + 0xc98], 0xd
call fcn.005a0c5d
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc98], 0xc
call fcn.00401070
lea ecx, [esp + 0x78]
mov byte [esp + 0xc98], 0xb
call fcn.005a0c5d
lea ecx, [esp + 0x18]
mov byte [esp + 0xc98], bl
call fcn.0059c834
jmp 0x4895e7
lea ecx, [esp + 0xd8]
mov byte [esp + 0xc98], 0x1a
call fcn.0054f610
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc98], 0x19
call fcn.005a8769
lea ecx, [esp + 0x98]
mov byte [esp + 0xc98], 0x18
call fcn.005a0c5d
lea ecx, [esp + 0x94]
mov byte [esp + 0xc98], 0x17
call fcn.005a0c5d
lea ecx, [esp + 0x90]
mov byte [esp + 0xc98], 0x16
call fcn.005a0c5d
lea ecx, [esp + 0x8c]
mov byte [esp + 0xc98], 0x15
call fcn.005a0c5d
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc98], 0x14
call fcn.00401070
lea ecx, [esp + 0x78]
mov byte [esp + 0xc98], 0x13
call fcn.005a0c5d
lea ecx, [esp + 0x18]
mov byte [esp + 0xc98], bl
call fcn.0059c834
cmp dword [0x682980], ebx
je 0x4895e7
mov esi, dword [esp + 8]
cmp esi, ebx
jne 0x4895ce
lea esi, [esp + 0xc]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.0059d55c
mov eax, dword [eax + 0x1c]
push ebx
push ebx
push esi
push eax
call dword [0x682980]
lea ecx, [esp + 8]
mov dword [esp + 0xc98], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0xc90]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xc94
ret