Function at 0x140020490
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0xf0]
mov word [rdx + rax], cx
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x100]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xd8]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xd8]
mov ecx, dword [rcx + 4]
mov dword [rax + 0xc], ecx
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140020539
cmp dword [rsp + 0x48], 1
je 0x140020552
cmp dword [rsp + 0x48], 2
je 0x14002056b
cmp dword [rsp + 0x48], 3
je 0x140020618
jmp 0x14002062c
mov rax, qword [rsp + 0x118]
mov ecx, dword [rax + 8]
call fcn.140022410
mov dword [rsp + 0x44], eax
jmp 0x14002062c
mov rax, qword [rsp + 0x118]
mov ecx, dword [rax + 8]
call fcn.140022490
mov dword [rsp + 0x44], eax
jmp 0x14002062c
mov rax, qword [rsp + 0x118]
cmp dword [rax + 8], 0
jl 0x140020602
mov ecx, 0x29c
call fcn.140031da0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.14000c8b0
nop
xor eax, eax
test eax, eax
jne 0x14002057d
mov rax, qword [rsp + 0x118]
mov dword [rax + 8], 0x8007029c
mov rax, qword [rsp + 0x118]
mov ecx, dword [rax + 8]
call fcn.14001f8b0
mov rcx, qword [rsp + 0x118]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x118]
mov ecx, dword [rax + 8]
call fcn.140022460
mov dword [rsp + 0x44], eax
jmp 0x14002062c
mov rax, qword [rsp + 0x118]
mov ecx, dword [rax + 8]
call fcn.140022440
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x118]
mov ecx, dword [rsp + 0xd0]
mov dword [rax], ecx
mov rax, qword [rsp + 0x118]
mov ecx, dword [rsp + 0x110]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0xd8]
cmp dword [rax + 8], 1
jne 0x140020664
mov byte [rsp + 0x40], 1
jmp 0x140020669
mov byte [rsp + 0x40], 0
movzx ecx, byte [rsp + 0x40]
call fcn.140012e20
movzx eax, al
test eax, eax
je 0x140020694
mov rax, qword [rsp + 0x118]
add rax, 4
mov edx, 8
mov rcx, rax
call fcn.140019640
nop
xor eax, eax
test eax, eax
jne 0x14002064f
lea rax, [0x140332554]
mov ecx, 1
lock xadd dword [rax], ecx
inc ecx
mov eax, ecx
mov rcx, qword [rsp + 0x118]
mov dword [rcx + 0x10], eax
cmp qword [rsp + 0xe0], 0
je 0x1400206ec
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0xe0]
movzx eax, word [rcx + rax]
test eax, eax
je 0x1400206ec
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x50], rax
jmp 0x1400206f5
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x118]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x118]
mov ecx, dword [rsp + 0xa8]
mov dword [rax + 0x40], ecx
mov rax, qword [rsp + 0x118]
mov ecx, dword [rsp + 0x44]
mov dword [rax + 0x44], ecx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xc0]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xb8]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xc8]
mov qword [rax + 0x88], rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xa0]
mov qword [rax + 0x90], rcx
mov rax, qword [rsp + 0x118]
mov qword [rax + 0x48], 0
mov rax, qword [rsp + 0x118]
add rax, 0x68
mov r8d, SafeArrayPutElement
xor edx, edx
mov rcx, rax
call fcn.1402938e0
mov rax, qword [rsp + 0x118]
add rax, 0x50
mov r8d, SafeArrayPutElement
xor edx, edx
mov rcx, rax
call fcn.1402938e0
cmp qword [0x1403323f8], 0
je 0x140020801
call qword [0x1403323f8]
mov qword [rsp + 0x58], rax
jmp 0x14002080a
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x80], rcx
cmp qword [0x1403323e0], 0
je 0x140020841
mov rax, qword [0x1403323e0]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x118]
call qword [rsp + 0x60]
nop
cmp qword [0x1403323e8], 0
je 0x140020874
mov rax, qword [0x1403323e8]
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x118]
call qword [rsp + 0x68]
nop
cmp qword [0x1403323f0], 0
je 0x140020897
mov rax, qword [0x1403323f0]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x118]
call qword [rsp + WSAStartup]
nop
cmp qword [0x140332460], 0
je 0x1400208d8
movzx eax, byte [rsp + 0xe8]
test eax, eax
jne 0x1400208d8
mov rax, qword [rsp + 0x118]
mov eax, dword [rax + 4]
and eax, 2
test eax, eax
jne 0x1400208d8
mov rax, qword [0x140332460]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x118]
call qword [rsp + 0x78]
nop
mov rax, qword [rsp + 0x118]
cmp dword [rax + 8], 0
jl 0x140020938
cmp dword [rsp + 0xd0], 3
je 0x1400208f7
mov byte [rsp + 0x41], 1
jmp 0x1400208fc
mov byte [rsp + 0x41], 0
movzx ecx, byte [rsp + 0x41]
call fcn.140012e20
movzx ecx, al
call fcn.14001d290
mov rax, qword [rsp + 0x118]
mov dword [rax + 8], 0x8000ffff
mov rax, qword [rsp + 0x118]
mov ecx, dword [rax + 8]
call fcn.14001f8b0
mov rcx, qword [rsp + 0x118]
mov dword [rcx + 0xc], eax
call fcn.14001fcc0
movzx eax, al
test eax, eax
je 0x140020968
movzx eax, byte [section..data]
test eax, eax
je 0x140020968
mov rax, qword [rsp + 0x118]
mov eax, dword [rax + 4]
and eax, 2
test eax, eax
jne 0x140020968
mov byte [rsp + 0x42], 1
jmp 0x14002096d
mov byte [rsp + 0x42], 0
movzx eax, byte [rsp + 0x42]
mov byte [rsp + 0x43], al
movzx eax, byte [rsp + 0xe8]
test eax, eax
jne 0x14002098f
movzx eax, byte [rsp + 0x43]
test eax, eax
je 0x140020a24
cmp qword [0x140332390], 0
je 0x1400209d3
movzx eax, byte [0x1403323c0]
test eax, eax
jne 0x1400209d3
mov rax, qword [0x140332390]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x118]
call qword [rsp + 0x80]
nop
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0xf0]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x140020a0a
mov r8, qword [rsp + 0x118]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.14001e000
nop
movzx eax, byte [rsp + 0x43]
test eax, eax
je 0x140020a22
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x140020a5d
cmp qword [0x140332390], 0
je 0x140020a5d
movzx eax, byte [0x1403323c0]
test eax, eax
jne 0x140020a5d
mov rax, qword [0x140332390]
mov qword [rsp + 0x88], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x118]
call qword [rsp + 0x88]
nop
mov rax, qword [rsp + 0x118]
mov eax, dword [rax + 4]
and eax, 4
test eax, eax
jne 0x140020a7a
movzx eax, byte [0x1403323b0]
test eax, eax
je 0x140020a8b
cmp qword [0x140332408], 0
je 0x140020a8b
call qword [0x140332408]
nop
add rsp, 0x98
ret