Function at 0x20005f32
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push 0x200025e0
push eax
call fcn.20005cc7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
pop ecx
push 0xc0000000
lea eax, [ebp - 0xc]
push eax
call fcn.20005e4f
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
je 0x20005f70
cmp eax, 0xffffffff
jne 0x20005f8e
call edi
cmp eax, 2
jne 0x20005f85
push 0x200025d0
call fcn.20005eb4
test eax, eax
jne 0x20005f54
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
and eax, 0xf000
neg eax
sbb eax, eax
and ecx, 0xf00
sub ecx, 0x300
neg eax
neg ecx
sbb ecx, ecx
inc ecx
test ecx, eax
je 0x20006004
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov ebx, 0x200025ac
push ebx
call esi
test eax, eax
jne 0x20006002
call edi
cmp eax, 2
jne 0x20006002
push 0x20002598
call fcn.20005eb4
test eax, eax
jne 0x20005ff9
push dword [ebp - 4]
call fcn.20005ddd
pop ecx
jmp 0x20005f85
call edi
cmp eax, 2
jne 0x20006002
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebx
call esi
test eax, eax
je 0x20005fe7
xor esi, esi
cmp dword [ebp + 0x14], esi
lea eax, [ebp - 0xc]
je 0x20006032
cmp dword [ebp + 0x18], esi
je 0x20006022
push dword [ebp + 0x14]
push eax
call fcn.20005d2f
pop ecx
pop ecx
test eax, eax
jne 0x2000603b
jmp 0x20005fdc
push esi
push esi
push eax
push dword [ebp + 0x14]
call fcn.20005e10
add esp, 0x10
jmp 0x2000601c
push esi
push eax
call fcn.20005cc7
pop ecx
pop ecx
movzx eax, word [ebp - 0xc]
add eax, 0x38
push eax
call sub.MSVCRT.dll_malloc
mov ebx, eax
cmp ebx, esi
pop ecx
jne 0x20006063
push dword [ebp - 4]
call fcn.20005ddd
lea eax, [ebp - 0xc]
push eax
call fcn.20005d66
pop ecx
jmp 0x20005fe4
movzx eax, word [ebp - 0xc]
add eax, 0x38
push eax
push esi
push ebx
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 0x1c]
add esp, 0xc
test esi, esi
je 0x200060ad
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x20006081
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x200060a0
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x200060a2
xor eax, eax
test eax, eax
je 0x200060ad
mov ax, word [esi]
mov word [ebx + 0x2c], ax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x200060bf
mov ecx, dword [eax]
mov dword [ebx + 0x20], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 0x24], eax
or dword [ebx], 0xffffffff
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push 6
lea edi, [ebx + 8]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x28], eax
mov ax, word [ebp - 0xc]
xor esi, esi
mov word [ebx + 0x2e], ax
cmp word [ebp - 0xc], si
je 0x20006100
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebx + 0x30]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0xc]
push eax
call fcn.20005d66
add esp, 0x10
movzx eax, word [ebx + 0x2e]
push esi
lea ecx, [ebp - 0x10]
push ecx
add eax, 0x38
push eax
push ebx
push eax
push ebx
push 0x8372e004
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push dword [ebp - 4]
je 0x20005fdf
call fcn.20005ddd
cmp dword [ebp + 0x1c], esi
pop ecx
je 0x2000616e
push dword [ebx]
lea eax, [ebp - 0x218]
push 0x20002578
push 0x2000256c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x1c]
mov word [ebp - 0x12], si
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0x20005f85
xor eax, eax
inc eax
jmp 0x20005f87