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

Disassembly:
push 0xffffffffffffffff
push 0x5c0da4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcd4
mov eax, dword [0x687b08]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x18], ecx
jne 0x489522
mov eax, 0x687b0c
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.00401ee0
mov eax, dword [0x687a2c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0xcec], ebx
je 0x4896f1
mov eax, dword [0x687a08]
push eax
call fcn.00589432
add esp, 4
test eax, eax
je 0x4896f1
mov ecx, dword [0x687a08]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x48958f
mov edx, dword [0x687a08]
lea ecx, [esp + 0x10]
push edx
call fcn.00401ee0
jmp 0x489788
mov eax, dword [0x687a08]
push 0x5c
push eax
call fcn.00589382
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4896f1
push ebx
lea ecx, [esp + 0x30]
add esi, 2
call fcn.00435150
push str._languages_
lea ecx, [esp + 0xac]
mov byte [esp + 0xcf0], 1
call fcn.005a59d6
push esi
lea ecx, [esp + 0xa8]
call fcn.005a59fd
mov ecx, dword [0x687a08]
push ecx
lea ecx, [esp + 0x94]
call fcn.00401ee0
mov edx, dword [esp + 0x1c]
push 0x688990
lea ecx, [esp + 0x90]
mov byte [esp + 0xa0], 1
mov eax, dword [edx + 4]
mov dword [esp + 0x8c], eax
call fcn.005a5986
lea ecx, [esp + 0x2c]
call fcn.005a17e3
cmp eax, 1
jne 0x489639
mov ecx, dword [0x687a08]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401ee0
mov edi, 1
lea ecx, [esp + 0xec]
mov byte [esp + 0xcec], 9
call fcn.00554010
lea ecx, [esp + 0xb0]
mov byte [esp + 0xcec], 8
call fcn.005ad359
lea ecx, [esp + 0xac]
mov byte [esp + 0xcec], 7
call fcn.005a584d
lea ecx, [esp + 0xa8]
mov byte [esp + 0xcec], 6
call fcn.005a584d
lea ecx, [esp + 0xa4]
mov byte [esp + 0xcec], 5
call fcn.005a584d
lea ecx, [esp + 0xa0]
mov byte [esp + 0xcec], 4
call fcn.005a584d
lea ecx, [esp + 0x90]
mov byte [esp + 0xcec], 3
call fcn.00401070
lea ecx, [esp + 0x8c]
mov byte [esp + 0xcec], 2
call fcn.005a584d
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcec], bl
call fcn.005a1424
cmp edi, ebx
jne 0x489788
mov edx, str.idman.chm
test edx, edx
je 0x489788
push edx
call fcn.00589432
add esp, 4
test eax, eax
je 0x489788
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x489720
push eax
call fcn.00589432
add esp, 4
mov esi, eax
jmp 0x489722
xor esi, esi
push str.idman.chm
call fcn.00589432
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.005a1be9
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x489788
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x489760
push eax
push esi
call fcn.005895ca
push str.idman.chm
push esi
call fcn.005895a0
add esp, 0x10
jmp 0x48976e
push str.idman.chm
push esi
call fcn.005895ca
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00401070
push esi
mov dword [esp + 0x14], esi
call fcn.00589432
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x489794
lea eax, [esp + 0x14]
push eax
call ebp
cmp eax, 0xffffffff
pop ebp
jne 0x48999b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x48999b
push ebx
lea ecx, [esp + 0x2c]
call fcn.00435150
push str._data_v4_
lea ecx, [esp + 0xa8]
mov byte [esp + 0xcec], 0xa
call fcn.005a59d6
push 0x663740
lea ecx, [esp + 0xa4]
call fcn.005a59d6
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x4897f0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x90]
call fcn.00401ee0
mov ecx, dword [esp + 0x18]
push 0x688990
mov byte [esp + 0x9c], 1
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x88], edx
call fcn.005a5986
lea ecx, [esp + 0x28]
call fcn.005a17e3
cmp eax, 1
je 0x4898eb
lea ecx, [esp + 0xe8]
mov byte [esp + 0xce8], 0x12
call fcn.00554010
lea ecx, [esp + 0xac]
mov byte [esp + 0xce8], 0x11
call fcn.005ad359
lea ecx, [esp + 0xa8]
mov byte [esp + 0xce8], 0x10
call fcn.005a584d
lea ecx, [esp + 0xa4]
mov byte [esp + 0xce8], 0xf
call fcn.005a584d
lea ecx, [esp + 0xa0]
mov byte [esp + 0xce8], 0xe
call fcn.005a584d
lea ecx, [esp + 0x9c]
mov byte [esp + 0xce8], 0xd
call fcn.005a584d
lea ecx, [esp + 0x8c]
mov byte [esp + 0xce8], 0xc
call fcn.00401070
lea ecx, [esp + 0x88]
mov byte [esp + 0xce8], 0xb
call fcn.005a584d
lea ecx, [esp + 0x28]
mov byte [esp + 0xce8], bl
call fcn.005a1424
jmp 0x489ab3
lea ecx, [esp + 0xe8]
mov byte [esp + 0xce8], 0x1a
call fcn.00554010
lea ecx, [esp + 0xac]
mov byte [esp + 0xce8], 0x19
call fcn.005ad359
lea ecx, [esp + 0xa8]
mov byte [esp + 0xce8], 0x18
call fcn.005a584d
lea ecx, [esp + 0xa4]
mov byte [esp + 0xce8], 0x17
call fcn.005a584d
lea ecx, [esp + 0xa0]
mov byte [esp + 0xce8], 0x16
call fcn.005a584d
lea ecx, [esp + 0x9c]
mov byte [esp + 0xce8], 0x15
call fcn.005a584d
lea ecx, [esp + 0x8c]
mov byte [esp + 0xce8], 0x14
call fcn.00401070
lea ecx, [esp + 0x88]
mov byte [esp + 0xce8], 0x13
call fcn.005a584d
lea ecx, [esp + 0x28]
mov byte [esp + 0xce8], bl
call fcn.005a1424
mov edi, dword [esp + 0xcf4]
cmp edi, ebx
je 0x489a87
mov eax, 0x663738
test eax, eax
je 0x489a41
push eax
call fcn.00589432
add esp, 4
test eax, eax
je 0x489a41
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4899d9
push eax
call fcn.00589432
add esp, 4
mov esi, eax
jmp 0x4899db
xor esi, esi
push 0x663738
call fcn.00589432
add eax, esi
lea ecx, [eax + eax + 2]
push ecx
call fcn.005a1be9
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x489a41
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x489a19
push eax
push esi
call fcn.005895ca
push 0x663738
push esi
call fcn.005895a0
add esp, 0x10
jmp 0x489a27
push 0x663738
push esi
call fcn.005895ca
add esp, 8
lea ecx, [esp + 0xc]
call fcn.00401070
push esi
mov dword [esp + 0x10], esi
call fcn.00589432
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.00402800
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xce8], 0x1b
cmp eax, ebx
jne 0x489a6d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.0044a440
lea ecx, [esp + 0x1c]
mov byte [esp + 0xce8], bl
call fcn.00401070
cmp dword [0x687f00], ebx
je 0x489ab3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.005a214c
push ebx
push ebx
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00401ed0
mov edx, dword [esi + 0x1c]
push eax
push edx
call dword [0x687f00]
lea ecx, [esp + 0xc]
mov dword [esp + 0xce8], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0xce0]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xce0
ret 8