Function at 0x140049360
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 [0x14012abd0], eax
jl 0x14004938f
mov eax, 4
add rsp, 0x178
pop r12
pop rbp
ret
mov qword [rsp + 0x190], rbx
mov rbx, qword [0x14012b5a0]
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 [0x14012abbd]
mov byte [0x14012abbd], 1
jne 0x1400493df
mov rbx, qword [rbx + 0x10]
test byte [rbx + 0x21], 8
je 0x1400493ed
mov rcx, rbx
call fcn.140001130
movzx eax, byte [rbx + 0x23]
cmp al, 1
jne 0x140049410
test byte [rbx + 0x21], 4
je 0x14004940a
lea rcx, [0x14012c540]
mov rdx, rbx
call fcn.14004f0e0
mov rdx, qword [rbx + 8]
jmp 0x140049473
cmp al, 2
jne 0x14004946c
mov rdx, qword [0x14012d1c0]
test rdx, rdx
jne 0x140049473
lea ecx, [rdx + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14004944c
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
lea rcx, [0x1400f1518]
lea rdx, [0x1400f1604]
test eax, eax
cmovne rdx, rcx
jmp 0x140049473
xor ecx, ecx
call fcn.140006cb0
mov ecx, 0xffffffff
lea rdx, [0x1400f1604]
cmp rax, rcx
cmovne rdx, qword [0x14012d1b8]
jmp 0x140049473
lea rdx, [0x14012c438]
lea rcx, [rsp + 0x60]
mov r8d, 0x7f
call fcn.1400d9e34
mov rbx, qword [0x1401255c8]
inc dword [0x14012abd0]
add rbx, 0x150
lea rdx, [0x1401294c0]
xor edi, edi
mov rcx, rbx
mov r8d, 0x150
mov word [rsp + 0x15e], di
mov qword [0x1401255c8], rbx
call fcn.1400d72b0
lea rcx, [0x14012c540]
xor edx, edx
mov dword [rbx + 0x3c], edi
call fcn.140029850
cmp dword [0x14012ac18], edi
mov qword [0x14012d110], rdi
je 0x140049500
mov rax, qword [0x140127148]
lea rcx, [0x1400f1604]
test rax, rax
je 0x1400494fa
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [rbx + 0x12e], dil
jne 0x14004951e
mov byte [rbx + 0x12e], 1
mov qword [rbx], 0xffffffffffffffff
mov dword [rbx + 0x34], 0xffffffff
cmp dword [0x14012d11c], edi
je 0x14004952e
cmp dword [0x14012d118], edi
jne 0x140049537
cmp byte [rbx + 0x12e], dil
je 0x140049573
mov byte [rbx + 0x12c], dil
cmp byte [rbx + 0x12e], dil
jne 0x140049573
cmp dword [0x14012d11c], edi
jge 0x14004955b
mov dword [rbx + 0x120], 0xffffffff
jmp 0x140049573
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x11c], eax
mov eax, dword [0x14012d11c]
mov dword [rbx + 0x120], eax
mov rdi, qword [0x14012d010]
mov esi, dword [0x14012d0b4]
mov r13, qword [0x14012d018]
mov r14d, dword [0x14012d0b8]
mov qword [0x14012d018], rdi
mov qword [0x14012d010], r12
mov dword [0x14012d0b8], esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012c468]
mov dword [0x14012d124], eax
mov dword [0x14012d120], eax
mov dword [0x14012d0b4], eax
cmp byte [rbp], 5
jne 0x140049658
cmp rcx, qword [0x14012c470]
jne 0x1400495e0
call fcn.1400075e0
mov rcx, qword [0x14012c468]
cmp rcx, qword [0x14012c460]
jb 0x1400495fa
mov rax, qword [0x14012cbe0]
mov qword [rcx], rax
mov rcx, qword [0x14012c468]
add rcx, 0x18
xor edx, edx
lea rax, [0x1400f3858]
mov qword [0x14012c468], rcx
mov qword [rcx + 8], rax
mov qword [rcx], rdx
mov dword [rcx + 0x10], edx
mov rcx, qword [rbp + 0x18]
call fcn.1400492d0
mov rcx, qword [0x14012c468]
sub rcx, 0x18
mov ebx, eax
cmp rcx, qword [0x14012c460]
mov qword [0x14012c468], rcx
jb 0x140049726
mov rcx, qword [rcx]
mov qword [0x14012c488], rcx
mov qword [0x14012cbe0], rcx
jmp 0x140049726
mov rbx, qword [rbp + 0x18]
xor edx, edx
cmp rcx, qword [0x14012c470]
mov dword [rsp + 0x50], edx
mov qword [rsp + 0x40], r12
jne 0x14004967e
call fcn.1400075e0
mov rcx, qword [0x14012c468]
xor edx, edx
cmp rcx, qword [0x14012c460]
jb 0x140049698
mov rax, qword [0x14012cbe0]
mov qword [rcx], rax
mov rcx, qword [0x14012c468]
add rcx, 0x18
mov dword [rsp + 0x30], edx
lea rax, [0x1400f3858]
mov qword [0x14012c468], 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, str.call
mov rdx, rbx
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.1400ae910
mov ebx, eax
mov rax, qword [0x14012c468]
sub rax, 0x18
cmp rax, qword [0x14012c460]
mov qword [0x14012c468], rax
jb 0x140049712
mov rax, qword [rax]
mov qword [0x14012c488], rax
mov qword [0x14012cbe0], rax
test ebx, ebx
je 0x140049726
mov rax, qword [rsp + 0x1a0]
neg rax
sbb ebx, ebx
add ebx, 4
mov rax, qword [0x1401255c8]
mov rcx, qword [rax + 0xf8]
mov qword [0x14012d010], rdi
mov dword [0x14012d0b4], esi
mov qword [0x14012abf8], rcx
lea rcx, [rsp + 0x60]
mov qword [0x14012d018], r13
mov dword [0x14012d0b8], r14d
call fcn.140004f60
mov r14, qword [rsp + 0x168]
mov r13, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x198]
mov byte [0x14012abbd], r15b
mov r15, qword [rsp + 0x160]
mov eax, ebx
mov rbx, qword [rsp + 0x190]
add rsp, 0x178
pop r12
pop rbp
ret