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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ed0f3
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x677000]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x677000]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
push 4
xor eax, eax
push str.EULA
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00406400
lea eax, [esp + 0x10]
mov dword [esp + 0x90], 0
mov ecx, dword [0x74e2f4]
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [ecx + 0x1c]
call fcn.00409910
mov byte [esp + 0x90], 2
cmp dword [esp + 0x24], 8
jb 0x476351
push dword [esp + 0x10]
call fcn.0049500b
add esp, 4
xor eax, eax
push 4
push str.LANG
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], eax
mov word [esp + 0x30], ax
call fcn.00406400
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x94], 3
mov ecx, dword [0x74e2f4]
lea eax, [esp + 0x54]
push eax
add ecx, 0xc
call fcn.00409910
mov byte [esp + 0x90], 5
cmp dword [esp + 0x3c], 8
jb 0x4763c4
push dword [esp + 0x28]
call fcn.0049500b
add esp, 4
xor eax, eax
push ecx
push eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov dword [esp + 0x58], 0x5f
call fcn.0045d930
mov esi, eax
call fcn.00476600
test eax, eax
je 0x47643a
cmp esi, 0xffffffff
je 0x476431
cmp dword [esp + 0x64], 8
lea ecx, [esp + 0x50]
cmovae ecx, dword [esp + 0x50]
lea ecx, [ecx + esi*2]
lea esi, [esp + 0x50]
cmovae esi, dword [esp + 0x50]
test ecx, ecx
je 0x476425
sub ecx, esi
sar ecx, 1
push 1
push ecx
lea ecx, [esp + 0x58]
call fcn.00406540
push 4
push str.AS_
jmp 0x476474
cmp esi, 0xffffffff
je 0x47646d
cmp dword [esp + 0x64], 8
lea ecx, [esp + 0x50]
cmovae ecx, dword [esp + 0x50]
lea ecx, [ecx + esi*2]
lea esi, [esp + 0x50]
cmovae esi, dword [esp + 0x50]
test ecx, ecx
je 0x476461
sub ecx, esi
sar ecx, 1
push 1
push ecx
lea ecx, [esp + 0x58]
call fcn.00406540
push 1
push 0x630b1c
lea ecx, [esp + 0x70]
call fcn.004062d0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x74]
call fcn.004061c0
push 4
push str..txt
lea ecx, [esp + 0x70]
call fcn.004062d0
cmp dword [esp + 0x7c], 8
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [esp + 0x68]
jne 0x4764cf
cmp dword [esp + 0x7c], 8
cmovae eax, dword [esp + 0x68]
push eax
push str.CDlgEULA::SetEulaString_GetFileAttributes___Failed___fpath:_s
jmp 0x476505
cmp dword [esp + 0x7c], 8
push 0
cmovae eax, dword [esp + 0x6c]
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x476527
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDlgEULA::SetEulaString_CreateFile___Failed___0x_08x
push 0xffffffffffffffff
push 0x1000
push 0x74e818
call fcn.005b8769
add esp, 0x14
push 0x74e818
call fcn.00418730
xor esi, esi
jmp 0x4765a0
lea edx, [esp + 0x4c]
mov ecx, edi
mov dword [esp + 0x4c], 1
call fcn.0041cb50
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x50]
xorps xmm0, xmm0
push 0x449
push dword [ebx + 0x314]
movq qword [esp + 0x54], xmm0
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x476850
call esi
push 0
push 0
push 0xce
push dword [ebx + 0x314]
call esi
push 0
neg eax
push eax
lea ecx, [ebx + 0x2f4]
call fcn.004a2c66
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
cmp dword [esp + 0x64], 8
jb 0x4765b3
push dword [esp + 0x50]
call fcn.0049500b
add esp, 4
xor eax, eax
cmp dword [esp + 0x7c], 8
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
jb 0x4765dd
push dword [esp + 0x68]
call fcn.0049500b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret