Function at 0x462470
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0xb5], 0
je 0x4624b3
mov eax, dword [edi + 0xb8]
cmp dword [eax - 0xc], 0
jne 0x46273c
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4624cf
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00419550
push str.lang_LANG_install_guide.chm
lea ecx, [ebp - 0x1c]
call fcn.004021e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00419000
mov byte [ebp - 4], 2
push dword [eax]
lea ecx, [ebp - 0x1c]
push str._LANG_
call fcn.00411ec0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46253a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
mov byte [ebp - 0xd], 1
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x28], eax
call fcn.004046f0
mov dl, byte [ebp - 0xd]
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041a740
add esp, 8
mov byte [ebp - 4], 4
mov esi, esp
push dword [ebp - 0x28]
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00414ae0
add esp, 4
cmp eax, 4
jne 0x4626b0
push 0
mov dl, 1
lea ecx, [ebp - 0x24]
call fcn.00416060
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov esi, esp
push eax
mov byte [ebp - 0xd], 1
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004046f0
mov dl, byte [ebp - 0xd]
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0041a740
add esp, 0xc
mov byte [ebp - 4], 7
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
cmp eax, 0xffffffff
je 0x462644
test al, 0x10
jne 0x462644
push dword [ebp - 0x14]
call esi
cmp eax, 0xffffffff
je 0x46262f
test al, 0x10
je 0x462644
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], 7
lea eax, [ebp - 0x14]
lea ecx, [edi + 0xb8]
push eax
call fcn.00404570
push dword [ebp - 0x14]
call esi
cmp eax, 0xffffffff
jne 0x462661
xor al, al
jmp 0x462668
shr al, 4
not al
and al, 1
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [edi + 0xb5], al
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46268e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4626de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4626de
lea eax, [ebp - 0x18]
lea ecx, [edi + 0xb8]
push eax
call fcn.00404570
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4626d1
xor al, al
jmp 0x4626d8
shr al, 4
not al
and al, 1
mov byte [edi + 0xb5], al
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4626fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46271e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x46273c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [edi + 0xb5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret