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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x228
mov esi, dword [ebp + 8]
mov eax, dword [0x4f62d0]
mov eax, dword [eax]
xor eax, ebp
mov dword [esp + 0x220], eax
lea edi, [esi + 2]
test byte [esi], 1
mov eax, edi
je 0x462f4f
mov eax, dword [esi + 8]
push 4
push 0x4fcf10
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
xor ecx, ecx
test eax, eax
sete cl
mov eax, dword [0x4fcf22]
mov dword [esp + 0x20], eax
movsd xmm0, qword [str.pipe_]
movsd qword [esp + 0x18], xmm0
movzx eax, byte [esi]
test al, 1
je 0x462f8a
mov edx, dword [esi + 4]
jmp 0x462f8e
mov edx, eax
shr edx, 1
lea ebx, [ecx*4 + 5]
cmp edx, ebx
jb 0x462fbf
shl ecx, 2
test al, 1
je 0x462fa3
mov edi, dword [esi + 8]
lea eax, [edi + ecx*2]
lea ecx, [esp + 0x18]
push 5
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x463174
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
lea edx, [esp + 8]
mov ecx, esi
call fcn.004631d0
mov ebx, eax
mov al, byte [esp + 8]
test al, 1
jne 0x463006
cmp al, 6
jb 0x463033
cmp word [esp + 0xc], 0x3a
jne 0x463033
cmp word [esp + 0xe], 0x5c
jne 0x463033
lea eax, [esp + 0xa]
jmp 0x46301f
cmp dword [esp + 0xc], 3
jb 0x463033
mov eax, dword [esp + 0x10]
cmp word [eax + 2], 0x3a
jne 0x463033
cmp word [eax + 4], 0x5c
jne 0x463033
movzx eax, word [eax]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
setb al
mov esi, eax
jmp 0x463035
xor esi, esi
lea ecx, [esp + 8]
mov edx, ecx
call fcn.00463280
mov bh, al
mov ecx, esi
mov eax, ecx
or al, bh
or bl, al
mov edi, 0x7b
cmp bl, 1
jne 0x46318a
test cl, cl
jne 0x46306c
lea ecx, [esp + 8]
push str.._
push 0
call fcn.00470e40
test byte [esp + 8], 1
lea eax, [esp + 0xa]
je 0x46307b
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x18]
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x46317b
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov esi, eax
add esi, 0xffffffff
test byte [esp + 8], 1
lea eax, [esp + 0xa]
je 0x4630b1
mov eax, dword [esp + 0x10]
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
mov edi, 0x7b
test eax, eax
jne 0x46318a
mov al, byte [esp + 8]
lea ebx, [esp + 8]
jmp 0x4630e8
mov ecx, dword [esp + 0xc]
cmp ecx, esi
jbe 0x463166
lea ecx, [esp + 0xa]
test al, 1
je 0x4630f4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x463110
test eax, 0x400
je 0x463140
jmp 0x4631bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 1]
cmp ecx, 3
jb 0x463125
mov edi, eax
cmp eax, 0x7b
jne 0x463129
mov edi, dword [esp + 4]
cmp ecx, 3
jae 0x463134
mov dword [esp + 4], edi
jmp 0x463140
mov dword [esp + 4], edi
cmp eax, 0x7b
jne 0x46318a
nop dword [eax]
mov ecx, ebx
push 0xffffffffffffffff
push 0x5c
call fcn.00471140
mov ecx, ebx
push 0
push eax
call fcn.00471d60
movzx eax, byte [esp + 8]
test al, 1
jne 0x4630e0
mov ecx, eax
shr ecx, 1
cmp ecx, esi
ja 0x4630e8
mov edi, 0x1126
test byte [esp + 8], 1
jne 0x463191
jmp 0x46319d
mov edi, 0x1126
jmp 0x46319d
test bh, bh
mov eax, 0x1126
mov edi, 0x7b
cmovne edi, eax
test byte [esp + 8], 1
je 0x46319d
push dword [esp + 0x10]
call fcn.004c3b20
add esp, 4
mov eax, dword [esp + 0x220]
xor eax, ebp
mov ecx, dword [0x4f62d0]
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x4631c7
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
test byte [esp + 8], 1
jne 0x463191
jmp 0x46319d
call fcn.00468008
int3