Function at 0x140049320
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 0x14004934f
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 0x14004939f
mov rbx, qword [rbx + 0x10]
test byte [rbx + 0x21], 8
je 0x1400493ad
mov rcx, rbx
call fcn.140001130
movzx eax, byte [rbx + 0x23]
cmp al, 1
jne 0x1400493d0
test byte [rbx + 0x21], 4
je 0x1400493ca
lea rcx, [0x14012c5c0]
mov rdx, rbx
call fcn.14004f190
mov rdx, qword [rbx + 8]
jmp 0x140049433
cmp al, 2
jne 0x14004942c
mov rdx, qword [0x14012d240]
test rdx, rdx
jne 0x140049433
lea ecx, [rdx + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14004940c
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
lea rcx, [0x1400f1518]
lea rdx, [0x1400f1524]
test eax, eax
cmovne rdx, rcx
jmp 0x140049433
xor ecx, ecx
call fcn.140006b40
mov ecx, 0xffffffff
lea rdx, [0x1400f1524]
cmp rax, rcx
cmovne rdx, qword [0x14012d238]
jmp 0x140049433
lea rdx, [0x14012c4b8]
lea rcx, [rsp + 0x60]
mov r8d, 0x7f
call fcn.1400da5b4
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.1400d7a30
lea rcx, [0x14012c5c0]
xor edx, edx
mov dword [rbx + 0x3c], edi
call fcn.140029830
cmp dword [0x14012aca0], edi
mov qword [0x14012d190], rdi
je 0x1400494c0
mov rax, qword [0x140127148]
lea rcx, [0x1400f1524]
test rax, rax
je 0x1400494ba
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [rbx + 0x12e], dil
jne 0x1400494de
mov byte [rbx + 0x12e], 1
mov qword [rbx], 0xffffffffffffffff
mov dword [rbx + 0x34], 0xffffffff
cmp dword [0x14012d19c], edi
je 0x1400494ee
cmp dword [0x14012d198], edi
jne 0x1400494f7
cmp byte [rbx + 0x12e], dil
je 0x140049533
mov byte [rbx + 0x12c], dil
cmp byte [rbx + 0x12e], dil
jne 0x140049533
cmp dword [0x14012d19c], edi
jge 0x14004951b
mov dword [rbx + 0x120], 0xffffffff
jmp 0x140049533
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 0x140049618
cmp rcx, qword [0x14012c4f0]
jne 0x1400495a0
call fcn.140007470
mov rcx, qword [0x14012c4e8]
cmp rcx, qword [0x14012c4e0]
jb 0x1400495ba
mov rax, qword [0x14012cc60]
mov qword [rcx], rax
mov rcx, qword [0x14012c4e8]
add rcx, 0x18
xor edx, edx
lea rax, [0x1400f3828]
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.140049290
mov rcx, qword [0x14012c4e8]
sub rcx, 0x18
mov ebx, eax
cmp rcx, qword [0x14012c4e0]
mov qword [0x14012c4e8], rcx
jb 0x1400496e6
mov rcx, qword [rcx]
mov qword [0x14012c508], rcx
mov qword [0x14012cc60], rcx
jmp 0x1400496e6
mov rbx, qword [rbp + 0x18]
xor edx, edx
cmp rcx, qword [0x14012c4f0]
mov dword [rsp + 0x50], edx
mov qword [rsp + 0x40], r12
jne 0x14004963e
call fcn.140007470
mov rcx, qword [0x14012c4e8]
xor edx, edx
cmp rcx, qword [0x14012c4e0]
jb 0x140049658
mov rax, qword [0x14012cc60]
mov qword [rcx], rax
mov rcx, qword [0x14012c4e8]
add rcx, 0x18
mov dword [rsp + 0x30], edx
lea rax, [0x1400f3828]
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, [0x1400f15f8]
mov rdx, rbx
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.1400af3c0
mov ebx, eax
mov rax, qword [0x14012c4e8]
sub rax, 0x18
cmp rax, qword [0x14012c4e0]
mov qword [0x14012c4e8], rax
jb 0x1400496d2
mov rax, qword [rax]
mov qword [0x14012c508], rax
mov qword [0x14012cc60], rax
test ebx, ebx
je 0x1400496e6
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.140004f80
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