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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a3712
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4c6184]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x4c6184]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [eax], 1
call fcn.0046b780
cmp eax, 0xffffffff
jne 0x4854fa
cmp byte [esi + 0x15a], 0
je 0x4854e5
cmp byte [esi + 0x159], 0
jne 0x4854e5
mov byte [esi + 0x15a], 0
mov byte [esi + 0x120], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push 1
push 2
mov ecx, esi
call edx
or eax, 0xffffffff
jmp 0x4858e1
mov edi, dword [esi + 0x3c4]
push 0x7f02
xor ebx, ebx
push ebx
mov dword [esp + 0x2c], edi
mov byte [esp + 0x44], 1
mov dword [esp + 0x48], edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f02
push ebx
mov dword [edi + 0x104], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0xd0], ebx
mov byte [esp + 0x10], bl
mov eax, dword [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1f], bl
mov dword [esp + 0x24], ebx
call fcn.0041c7c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 1
mov eax, dword [0x4cfcc4]
push ecx
mov dword [esp + 0x14], ebx
push str.Files
lea ebx, [esp + 0x18]
mov edx, str.File_Setup_PlusNetwork
call fcn.0041df40
test al, al
je 0x485625
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x485625
lea edx, [esp + 0x10]
push edx
call fcn.0041bb70
mov byte [esp + 0xd0], 2
mov eax, dword [0x4d0198]
push eax
push str._sAskFiles.dat
lea edi, [esp + 0x18]
call fcn.00417b50
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
push ebx
push ecx
call fcn.00417c70
add esp, 0x10
test al, al
je 0x4855ed
mov edx, dword [0x4d0198]
push edx
mov edx, dword [esp + 0x14]
mov ecx, str._Ask.com_Agreement.rtf_
call fcn.0041c940
add esp, 4
mov bl, 1
test al, al
jne 0x4855f1
mov bl, byte [esp + 0x17]
mov byte [esp + 0xd0], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485619
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4856b2
mov edi, dword [esp + 0x24]
cmp byte [esi + 0x15a], 0
je 0x485645
cmp byte [esi + 0x159], 0
jne 0x485645
mov byte [esi + 0x15a], 0
mov byte [esi + 0x120], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push 1
push 2
mov ecx, esi
call eax
mov byte [esp + 0xd0], 0
mov esi, dword [esp + 0x20]
test esi, esi
je 0x48568c
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x48568c
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x48568c
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 0x7f00
push 0
mov dword [edi + 0x104], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
or eax, 0xffffffff
jmp 0x4858e1
lea ecx, [esp + 0x18]
push ecx
call fcn.0041bb70
push str.LanguageId
push str.FileInfo
lea edx, [esp + 0x18]
mov byte [esp + 0xd8], 3
mov ebx, dword [0x4cfccc]
push edx
call fcn.0041b780
mov byte [esp + 0xd0], 4
mov eax, dword [eax]
push eax
mov eax, dword [0x4d0198]
push eax
push str._sAsk.com_Agreement___s_.rtf
lea edi, [esp + 0x24]
call fcn.00417b50
mov byte [esp + 0xdc], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485728
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x485750
mov edx, dword [0x4d0198]
push edx
push str._sAsk.com_Agreement.rtf
lea edi, [esp + 0x20]
call fcn.00417b50
add esp, 8
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push edi
push 0x80
push 3
push edi
push 3
mov byte [esp + 0xe4], 5
mov eax, dword [esp + 0x2c]
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x485907
call fcn.004182f0
cmp eax, edi
jl 0x48582c
push ecx
mov dword [esp + 0x14], esp
push esp
mov ecx, 0x4afc70
call fcn.0041bf30
lea ebx, [esp + 0x14]
mov edi, esi
call fcn.00473d70
push 0x74
lea ecx, [esp + 0x48]
push 0
push ecx
call fcn.0048a470
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
lea edx, [esp + 0x44]
push edx
push 0
push 0x43a
push edi
mov dword [esp + 0x54], 0x74
mov dword [esp + 0x58], 0xe0000000
call ebx
lea ecx, [esp + 0x30]
push ecx
xor eax, eax
push 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
push 0x449
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0x485910
call ebx
lea edx, [esp + 0x44]
push edx
push 4
push 0x444
push edi
mov dword [esp + 0x58], 0xe0000000
call ebx
push ecx
mov dword [esp + 0x14], esp
push esp
mov ecx, 0x4b029c
call fcn.0041bf30
lea ebx, [esp + 0x14]
mov edi, esi
call fcn.00473d70
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp eax, ebx
je 0x485861
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xd0], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485889
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd0], bl
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x4858c2
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4858c2
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4858c2
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x24]
push 0x7f00
push ebx
mov dword [ecx + 0x104], ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x28], eax
jmp 0x485793