Function at 0x140049370
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
push rbp
push r12
sub rsp, 0x178
mov eax, dword [reloc.WSOCK32.DLL_inet_addr]
mov r12, rdx
mov rbp, rcx
cmp dword [0x14012ac54], eax
jl 0x14004939f
mov eax, 4
add rsp, 0x178
pop r12
pop rbp
ret
mov qword [rsp + 0x190], rbx
mov rbx, qword [0x14012b628]
mov qword [rsp + 0x198], rsi
cmp byte [rbx + 0x23], 0
mov qword [rsp + 0x1a8], rdi
mov qword [rsp + 0x170], r13
mov qword [rsp + 0x168], r14
mov qword [rsp + 0x160], r15
movzx r15d, byte [0x14012ac42]
mov byte [0x14012ac42], 1
jne 0x1400493ef
mov rbx, qword [rbx + 0x10]
test byte [rbx + 0x21], 8
je 0x1400493fd
mov rcx, rbx
call fcn.140001130
movzx eax, byte [rbx + 0x23]
cmp al, 1
jne 0x140049420
test byte [rbx + 0x21], 4
je 0x14004941a
lea rcx, [0x14012c5c0]
mov rdx, rbx
call fcn.14004f1e0
mov rdx, qword [rbx + 8]
jmp 0x140049483
cmp al, 2
jne 0x14004947c
mov rdx, qword [0x14012d240]
test rdx, rdx
jne 0x140049483
lea ecx, [rdx + 0xd]
call qword [sym.imp.USER32.DLL_IsClipboardFormatAvailable]
test eax, eax
jne 0x14004945c
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.DLL_IsClipboardFormatAvailable]
lea rcx, [0x1400f1508]
lea rdx, [0x1400f1514]
test eax, eax
cmovne rdx, rcx
jmp 0x140049483
xor ecx, ecx
call fcn.140006ac0
mov ecx, 0xffffffff
lea rdx, [0x1400f1514]
cmp rax, rcx
cmovne rdx, qword [0x14012d238]
jmp 0x140049483
lea rdx, [0x14012c4b8]
lea rcx, [rsp + 0x60]
mov r8d, 0x7f
call fcn.1400da5c4
mov rbx, qword [0x1401255c8]
inc dword [0x14012ac54]
add rbx, 0x150
lea rdx, [0x140129540]
xor edi, edi
mov rcx, rbx
mov r8d, 0x150
mov word [rsp + 0x15e], di
mov qword [0x1401255c8], rbx
call fcn.1400d7a40
lea rcx, [0x14012c5c0]
xor edx, edx
mov dword [rbx + 0x3c], edi
call fcn.140029860
cmp dword [0x14012aca0], edi
mov qword [0x14012d190], rdi
je 0x140049510
mov rax, qword [0x140127148]
lea rcx, [0x1400f1514]
test rax, rax
je 0x14004950a
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
cmp byte [rbx + 0x12e], dil
jne 0x14004952e
mov byte [rbx + 0x12e], 1
mov qword [rbx], 0xffffffffffffffff
mov dword [rbx + 0x34], 0xffffffff
cmp dword [0x14012d19c], edi
je 0x14004953e
cmp dword [0x14012d198], edi
jne 0x140049547
cmp byte [rbx + 0x12e], dil
je 0x14004958d
mov dword [rbx + 0x118], reloc.OLEAUT32.DLL_SafeArrayGetDim
mov byte [rbx + 0x12c], dil
cmp byte [rbx + 0x12e], dil
jne 0x14004958d
cmp dword [0x14012d19c], edi
jge 0x140049575
mov dword [rbx + 0x120], 0xffffffff
jmp 0x14004958d
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [rbx + 0x11c], eax
mov eax, dword [0x14012d19c]
mov dword [rbx + 0x120], eax
mov rdi, qword [0x14012d090]
mov esi, dword [0x14012d134]
mov r13, qword [0x14012d098]
mov r14d, dword [0x14012d138]
mov qword [0x14012d098], rdi
mov qword [0x14012d090], r12
mov dword [0x14012d138], esi
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rcx, qword [0x14012c4e8]
mov dword [0x14012d1a4], eax
mov dword [0x14012d1a0], eax
mov dword [0x14012d134], eax
cmp byte [rbp], 5
jne 0x140049672
cmp rcx, qword [0x14012c4f0]
jne 0x1400495fa
call fcn.1400073f0
mov rcx, qword [0x14012c4e8]
cmp rcx, qword [0x14012c4e0]
jb 0x140049614
mov rax, qword [0x14012cc60]
mov qword [rcx], rax
mov rcx, qword [0x14012c4e8]
add rcx, 0x18
xor edx, edx
lea rax, [0x1400f3818]
mov qword [0x14012c4e8], rcx
mov qword [rcx + 8], rax
mov qword [rcx], rdx
mov dword [rcx + 0x10], edx
mov rcx, qword [rbp + 0x18]
call fcn.1400492e0
mov rcx, qword [0x14012c4e8]
sub rcx, 0x18
mov ebx, eax
cmp rcx, qword [0x14012c4e0]
mov qword [0x14012c4e8], rcx
jb 0x140049740
mov rcx, qword [rcx]
mov qword [0x14012c508], rcx
mov qword [0x14012cc60], rcx
jmp 0x140049740
mov rbx, qword [rbp + 0x18]
xor edx, edx
cmp rcx, qword [0x14012c4f0]
mov dword [rsp + 0x50], edx
mov qword [rsp + 0x40], r12
jne 0x140049698
call fcn.1400073f0
mov rcx, qword [0x14012c4e8]
xor edx, edx
cmp rcx, qword [0x14012c4e0]
jb 0x1400496b2
mov rax, qword [0x14012cc60]
mov qword [rcx], rax
mov rcx, qword [0x14012c4e8]
add rcx, 0x18
mov dword [rsp + 0x30], edx
lea rax, [0x1400f3818]
mov qword [0x14012c4e8], rcx
mov qword [rcx + 8], rax
mov qword [rcx], rdx
mov dword [rcx + 0x10], edx
lea rax, [rsp + 0x1a0]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x1400f15e8]
mov rdx, rbx
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.1400af3a0
mov ebx, eax
mov rax, qword [0x14012c4e8]
sub rax, 0x18
cmp rax, qword [0x14012c4e0]
mov qword [0x14012c4e8], rax
jb 0x14004972c
mov rax, qword [rax]
mov qword [0x14012c508], rax
mov qword [0x14012cc60], rax
test ebx, ebx
je 0x140049740
mov rax, qword [rsp + 0x1a0]
neg rax
sbb ebx, ebx
add ebx, 4
mov rax, qword [0x1401255c8]
mov rcx, qword [rax + 0xf8]
mov qword [0x14012d090], rdi
mov dword [0x14012d134], esi
mov qword [0x14012ac80], rcx
lea rcx, [rsp + 0x60]
mov qword [0x14012d098], r13
mov dword [0x14012d138], r14d
call fcn.140004f30
mov r14, qword [rsp + 0x168]
mov r13, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x198]
mov byte [0x14012ac42], r15b
mov r15, qword [rsp + 0x160]
mov eax, ebx
mov rbx, qword [rsp + 0x190]
add rsp, 0x178
pop r12
pop rbp
ret