Function at 0x6e5ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
call sym._uv__once_init
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x6e62fe
cmp ebx, 2
jle 0x6e5ff0
mov edx, dword [esp + 0x7c]
test edx, edx
je 0x6e6050
lea eax, [esi + 8]
mov edx, dword [esp + 0x7c]
mov dword [edi + 4], esi
mov dword [edi + 8], 0xe
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0xc]
lea eax, [edi + 0x10]
test edx, edx
mov dword [edi + 0x14], ecx
mov dword [ecx], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x30], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x48], 0xe
mov dword [edi + 0x64], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0xffffffff
mov dword [edi + 0x44], edi
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x3c], 0
mov dword [edi + 0x2c], 0x1220
jne 0x6e61b2
xor eax, eax
mov dword [edi + 0x2c], 0x11220
mov dword [edi + 0x94], 0
mov word [edi + 0x98], ax
mov byte [edi + 0x9a], 0
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov ebx, 0xffffffff
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
jne 0x6e5f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call dbg.uv_translate_sys_error
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x3a]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
sub esp, 8
test eax, eax
je 0x6e6039
mov dword [esp], 0x947a60
call dbg.uv_sem_wait
cmp dword [0x7ee048], 1
je 0x6e6290
mov eax, dword [0x947a58]
test eax, eax
jne 0x6e619a
movzx eax, word [esp + 0x42]
test ax, ax
je 0x6e6230
mov edx, eax
mov ecx, eax
mov word [0x7ee04e], ax
and edx, 4
and ecx, 2
mov byte [0x7ee04c], 0
mov word [esp + 0x2e], dx
mov edx, eax
mov byte [0x947a5f], 0
and edx, 1
mov byte [0x947a5e], 0
mov byte [0x947a5d], 0
mov word [esp + 0x2c], dx
mov edx, eax
mov byte [0x947a5c], 0
and edx, 0x40
mov word [esp + 0x2a], dx
mov edx, eax
and edx, 0x20
mov word [esp + 0x28], dx
mov edx, eax
and edx, 0x10
mov word [esp + 0x26], dx
mov edx, eax
and edx, 8
mov word [esp + 0x20], dx
mov edx, eax
and ax, 0x4000
and dx, 0x80
cmp word [esp + 0x2e], 0
jne 0x6e6282
test cx, cx
je 0x6e612d
or byte [0x7ee04c], 2
cmp word [esp + 0x2c], 0
je 0x6e613c
or byte [0x7ee04c], 4
cmp word [esp + 0x2a], 0
je 0x6e614b
mov byte [0x947a5f], 1
cmp word [esp + 0x28], 0
je 0x6e615a
or byte [0x947a5f], 2
cmp word [esp + 0x26], 0
je 0x6e6169
or byte [0x947a5f], 4
cmp word [esp + 0x20], 0
je 0x6e6178
mov byte [0x947a5e], 1
test dx, dx
je 0x6e6184
mov byte [0x947a5d], 1
test ax, ax
je 0x6e6190
mov byte [0x947a5c], 1
mov dword [0x947a58], 1
mov eax, ebp
call dbg.uv_tty_update_virtual_window
mov dword [esp], 0x947a60
call dbg.uv_sem_post
jmp 0x6e5f33
mov dword [edi + 0x2c], 0x1009220
mov dword [edi + 0x94], 0
xor eax, eax
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 7
xor edx, edx
mov byte [0x947a5f], 0
mov word [0x7ee04e], cx
xor ecx, ecx
mov word [esp + 0x2a], dx
mov word [esp + 0x28], cx
xor edx, edx
xor ecx, ecx
mov word [esp + 0x20], dx
mov word [esp + 0x26], cx
xor edx, edx
mov byte [0x947a5e], 0
mov byte [0x947a5d], 0
mov ecx, 2
mov byte [0x947a5c], 0
mov word [esp + 0x2c], 1
mov byte [0x7ee04c], 1
jmp 0x6e6121
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
sub esp, 8
test eax, eax
mov ecx, dword [esp + 0x20]
jne 0x6e62d0
mov dword [0x7ee048], 2
jmp 0x6e6085
mov eax, dword [esp + 0x34]
mov dword [esp], ecx
or eax, 4
mov dword [esp + 0x34], eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
sub esp, 8
test eax, eax
je 0x6e62bc
mov dword [0x7ee048], 0
jmp 0x6e6085
mov eax, 0xfffff00d
jmp 0x6e5fe2