Function at 0x14003a700
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x1400a45f8]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor eax, eax
mov word [rbp - 0x3d], r8w
mov word [rbp - 0x45], ax
movzx r15d, dx
mov word [rbp - 0x39], ax
mov rsi, rcx
mov word [rbp - 0x49], ax
mov byte [rbp - 0x2d], al
mov word [rbp - 0x31], ax
mov word [rbp - 0x41], ax
mov word [rbp - 0x35], ax
test rcx, rcx
je 0x14003ac46
test dx, dx
je 0x14003ac46
mov eax, 0xffff
cmp dx, ax
jne 0x14003a76e
mov eax, 3
jmp 0x14003a96f
mov qword [rsp + 0xc0], r14
call fcn.140029520
mov r14, rax
mov eax, 0x7242
cmp word [r14 + 0x18], ax
jne 0x14003ac3c
test byte [r14 + 0x2a], 4
jne 0x14003a7a4
mov eax, 2
mov word [r14 + 0x1e], ax
jmp 0x14003a967
mov rcx, rsi
mov qword [rsp + 0xd8], rdi
call fcn.140036110
mov rdx, qword [0x1400a9030]
mov ecx, eax
call fcn.140037e70
mov rdi, rax
test rax, rax
jne 0x14003a7d2
lea eax, [rdi + 2]
jmp 0x14003a95f
mov qword [rsp + 0x110], rbx
mov rcx, rsi
mov qword [rsp + 0xd0], r12
lea rbx, [rax + 0x204]
mov qword [rsp + 0xc8], r13
call fcn.140029520
lea rcx, [rdi + 0x62e]
lea r12, [rdi + 0xabc]
lea r13, [rdi + 0x604]
mov qword [rax + 8], rbx
mov r8, r13
cmp byte [rdi + 0x6b1], 2
mov eax, dword [rdi + 0xab8]
mov dword [rsp + 0x40], eax
movzx eax, byte [rdi + 0x6b0]
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x30], al
mov qword [rsp + 0x28], rcx
mov rcx, rsi
ja 0x14003a84e
mov qword [rsp + 0x20], 0
xor r9d, r9d
jmp 0x14003a861
lea rdx, [rdi + 0xce2]
mov qword [rsp + 0x20], rdx
lea r9, [rdi + 0xcb8]
xor edx, edx
call fcn.140041ce0
movzx edx, r15w
mov rcx, rsi
call fcn.14003f170
test ax, ax
jne 0x14003a947
movzx edx, byte [rdi + 0x6b1]
lea r8, [rbp - 0x49]
mov rcx, rsi
call fcn.14003a520
test ax, ax
je 0x14003a8be
mov rcx, rsi
call fcn.14003f340
test ax, ax
jne 0x14003a987
movzx edx, byte [rdi + 0x6b1]
lea r8, [rbp - 0x49]
mov rcx, rsi
call fcn.14003a520
test ax, ax
jne 0x14003a895
cmp word [rdi + 0x9a], 0
movzx eax, word [rbp - 0x49]
mov word [rdi + 0x1d0], ax
je 0x14003a8e6
mov ecx, 0x1000
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x14003a9f3
cmp dword [rdi + 0x1ec], 1
jne 0x14003a8f7
mov rcx, rsi
call fcn.14003eb20
cmp word [rbp - 0x3d], 1
jne 0x14003ab77
cmp word [0x1400a730c], 0
mov ebx, 1
jne 0x14003a9c3
lea rcx, [rbp - 0x21]
call fcn.140028f60
test eax, eax
jne 0x14003a93d
xor r8d, r8d
lea rcx, [rbp - 0x21]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x1400a7318], rax
test rax, rax
jne 0x14003a98e
mov eax, 0x4a
mov word [r14 + 0x1e], ax
mov r13, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x110]
mov rdi, qword [rsp + 0xd8]
mov r14, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140077b10
add rsp, 0xe0
pop r15
pop rsi
pop rbp
ret
mov eax, 3
jmp 0x14003a947
lea rax, [rbp - 0x29]
xor r15d, r15d
mov qword [rsp + 0x28], rax
lea r8, [0x140039820]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [0x1400a7320], rax
mov word [0x1400a730c], bx
jmp 0x14003a9c6
xor r15d, r15d
cmp word [rdi + 0x9a], 0
je 0x14003a9df
mov ecx, 0x1000
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x14003a9f3
lea r8, [rbp - 0x39]
mov rcx, rsi
lea rdx, [rbp - 0x45]
call fcn.1400362a0
test eax, eax
jne 0x14003a9fd
mov eax, 0x46
jmp 0x14003a942
cmp word [rbp - 0x45], 0
lea rdx, [rbp - 9]
mov ebx, r15d
mov rcx, rsi
cmovne ebx, dword [0x1400a72a4]
call fcn.1400406a0
lea r9, [rbp - 0x35]
mov rcx, rsi
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x31]
call fcn.140053600
test ax, ax
mov r9d, 1
mov eax, dword [rbp - 0x2d]
jne 0x14003aa46
cmp word [rbp - 0x41], 2
movzx eax, al
cmove eax, r9d
mov r8d, dword [rbp - 5]
lea rcx, [r14 + 0x18]
mov edx, dword [rbp - 9]
mov byte [rsp + 0x48], al
mov word [rsp + 0x40], r15w
mov dword [rsp + 0x38], r15d
mov word [rsp + 0x30], r15w
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r9d
call fcn.14003c810
test ax, ax
je 0x14003aa98
mov edx, Ordinal_1032
mov rcx, rsi
call fcn.14003f5d0
mov rcx, rsi
call fcn.1400409b0
mov eax, 0x46
jmp 0x14003a947
movzx ecx, byte [rbp + 2]
lea eax, [rcx - 5]
test al, 0xfc
jne 0x14003ab6e
cmp cl, 6
je 0x14003ab6e
movzx ecx, byte [rbp + 0xa]
movzx eax, byte [rbp + 0xb]
shl eax, 0x10
shl ecx, 8
add ecx, eax
movzx eax, byte [rbp + 0xc]
shl eax, 0x18
add ecx, eax
movzx eax, byte [rbp + 9]
add ecx, eax
bt ecx, 0xe
jae 0x14003ab6e
cmp dword [rdi + 0x1f0], 0
je 0x14003ab6e
cmp byte [rdi + 0x6b1], 2
lea rdx, [rdi + 0x1f4]
ja 0x14003ab31
mov eax, dword [rdi + 0xab8]
xor r9d, r9d
mov dword [rsp + 0x40], eax
mov r8, r13
movzx eax, byte [rdi + 0x6b0]
mov rcx, rsi
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x30], al
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call fcn.140041ce0
movzx eax, r15w
jmp 0x14003a947
mov ecx, dword [rdi + 0xab8]
lea r8, [rdi + 0xce2]
mov dword [rsp + 0x40], ecx
lea r9, [rdi + 0xcb8]
movzx ecx, byte [rdi + 0x6b0]
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x30], cl
mov rcx, rsi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r8
mov r8, r13
call fcn.140041ce0
movzx eax, r15w
jmp 0x14003a947
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.1400406a0
movzx edx, byte [rbp + 2]
movzx ebx, ax
lea ecx, [rdx - 5]
test cl, 0xfc
jne 0x14003ac34
cmp dl, 6
je 0x14003ac34
movzx edx, byte [rbp + 0xa]
movzx ecx, byte [rbp + 0xb]
movzx eax, byte [rbp + 0xc]
shl edx, 8
shl eax, 0x18
shl ecx, 0x10
add edx, ecx
add edx, eax
movzx eax, byte [rbp + 9]
add edx, eax
bt edx, 0xe
jae 0x14003ac34
cmp dword [rdi + 0x1f0], 0
je 0x14003ac34
mov eax, dword [rdi + 0xab8]
lea rdx, [rdi + 0x1f4]
mov dword [rsp + 0x40], eax
mov r8, r13
movzx eax, byte [rdi + 0x6b0]
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x30], al
xor eax, eax
cmp byte [rdi + 0x6b1], 2
mov qword [rsp + 0x28], rax
ja 0x14003ac19
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.140041ce0
movzx eax, bx
jmp 0x14003a947
lea rcx, [rdi + 0xce2]
mov qword [rsp + 0x20], rcx
lea r9, [rdi + 0xcb8]
mov rcx, rsi
call fcn.140041ce0
movzx eax, bx
jmp 0x14003a947
mov eax, 2
jmp 0x14003a967
mov eax, reloc.WSOCK32.dll_recv
jmp 0x14003a96f