Function at 0x140037940
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4d8
mov rsi, rcx
mov rax, qword [0x140135388]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
lea rax, [0x140109958]
mov qword [rcx], rax
lea r12, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
test byte [rsi + rcx + 0x30], 5
jne 0x140037b79
mov rcx, qword [r12 + rcx + 0x28]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x10
lea rbx, [rsp + 0xc0]
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [rax + 0x18]
mov r13, qword [rbx + 8]
mov rax, qword [r12]
movsxd rcx, dword [rax + 4]
add rcx, r12
lea rdi, [rsp + 0xc0]
mov rdx, rdi
call fcn.14000d150
lea rdx, [0x140137e20]
mov rcx, rdi
call fcn.140029040
mov rbp, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbp + 0x38]
mov ebx, eax
mov rcx, rdi
call fcn.14000fef0
mov rcx, r12
mov edx, ebx
call fcn.14000db80
mov rcx, r12
call fcn.14000d040
lea r14, [rsi + 0x18]
lea rbx, [rsp + 0xa0]
mov rcx, r14
mov rdx, rbx
call fcn.140007d10
test byte [0x140135840], 0x19
jne 0x140037b94
mov rax, qword [0x140138b98]
test rax, rax
je 0x140037a5c
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
mov qword [rsp + 0x20], rbx
call rax
test al, al
jne 0x140037d96
mov eax, dword [0x140135338]
test al, 2
jne 0x140037d27
test al, 4
jne 0x140037b2d
cmp eax, 1
ja 0x140037a81
cmp dword [rsi + 8], 2
jge 0x140037b2d
test al, 1
jne 0x140037d4d
cmp dword [rsi + 8], 3
je 0x140037cc2
lea rbp, [rsp + 0xa0]
cmp byte [rbp + 0x17], 0
jns 0x140037aae
mov rcx, qword [rsp + 0xa0]
call fcn.1400d8b70
lea rcx, [rsi + 0x138]
call fcn.140043ef0
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x140105908]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1401058a0]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
lea rsi, [rsi + 0x80]
jns 0x140037af0
mov rcx, qword [r12 + 0x48]
call fcn.1400d8b70
mov rcx, r14
call fcn.14000cc50
mov rcx, r14
call fcn.140004510
mov rcx, rsi
call fcn.14000cc40
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.1400d8ee0
nop
add rsp, 0x4d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.1400dcf48
lea rcx, [rsp + 0xa0]
movzx edx, byte [rcx + 0x17]
test dl, dl
cmovs rdx, qword [rcx + 8]
cmovs rcx, qword [rcx]
mov r8d, 1
mov r9, rax
call fcn.1400ef768
mov ecx, 2
call fcn.1400dcf48
mov rcx, rax
call fcn.1400ef0ec
mov eax, dword [0x140135338]
jmp 0x140037a81
movaps xmm0, xmmword [0x1401057b0]
movaps xmmword [rsp + 0xc0], xmm0
mov r13, 0xffffffffffffffff
jmp 0x1400379b8
movzx eax, byte [rsp + 0xb7]
test al, al
mov rcx, qword [rsp + 0xa0]
cmovns rcx, rbx
cmovs rax, qword [rsp + 0xa8]
lea rdx, [rsp + 0x80]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov r8, qword [rsi + 0x118]
lea r15, [rsp + 0x90]
mov rcx, r15
mov r9, 0xffffffffffffffff
call fcn.140042210
mov ecx, 0x30
call fcn.1400d8b20
mov rdi, rax
mov r9d, dword [rsi + 0x128]
movups xmm0, xmmword [r15]
lea r15, [rsp + 0xc0]
movaps xmmword [r15], xmm0
mov rdx, qword [rsi + 0x120]
mov rcx, rax
mov r8, r15
call fcn.140044310
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebp, eax
lea rcx, [rsp + 0xb8]
call fcn.140044770
mov word [r15], 0x801
lea rax, str.message
mov qword [r15 + 8], rax
mov qword [r15 + 0x18], rdi
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0x8008
lea rdx, [0x140135840]
lea r8, str.LogMessage
mov cl, 0x49
xor r9d, r9d
call fcn.1400486f0
mov al, byte [r15]
test al, al
je 0x140037a29
xor edi, edi
cmp byte [rsp + rdi + 0xc1], 8
jne 0x140037cb2
mov rcx, qword [rsp + rdi*8 + 0xd8]
test rcx, rcx
je 0x140037cb2
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov al, byte [rsp + 0xc0]
inc rdi
movzx ecx, al
cmp rdi, rcx
jb 0x140037c8a
jmp 0x140037a29
mov rcx, qword [0x140139158]
lea rbp, [rsp + 0xa0]
test rcx, rcx
je 0x140037cfa
movzx eax, byte [rbp + 0x17]
test al, al
mov rbx, qword [rbp]
cmovns rbx, rbp
lea rdx, [rsp + 0x70]
mov qword [rdx], rbx
cmovs rax, qword [rbp + 8]
mov qword [rdx + 8], rax
call fcn.14004c630
mov dword [rsp + 0xc0], 0xbedead01
mov dword [rsp + 0x4c4], 0x5050dead
cmp byte [rbp + 0x17], 0
jns 0x140037da9
mov rdx, qword [rsp + 0xa0]
jmp 0x140037db1
cmp byte [rsp + 0xb7], 0
jns 0x140037d39
mov rbx, qword [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140135338]
jmp 0x140037a6a
call fcn.140037170
test al, al
je 0x140037a89
lea rdx, [rsp + 0xa0]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x140138bb0]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140037a89
cmp byte [rsp + 0xb7], 0
jns 0x140037aae
jmp 0x140037aa1
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xc4]
mov r8d, 0x400
call fcn.140041930
lea rcx, [rsp + 0xc0]
call fcn.140004510
mov eax, dword [0x140138bd8]
mov ecx, dword [0x140138c48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140037e24
lea rcx, [0x140138bd8]
call fcn.1400d8c90
cmp dword [0x140138bd8], 0xffffffff
jne 0x140037e24
xorps xmm0, xmm0
movups xmmword [0x140138bc8], xmm0
movups xmmword [0x140138bb8], xmm0
lea rcx, [0x140138bd8]
call fcn.1400d8d28
mov rax, qword [0x140138bc8]
cmp rax, qword [0x140138bd0]
je 0x140037f4b
mov eax, dword [0x140138bd8]
mov ecx, dword [0x140138c48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140037e8b
lea rcx, [0x140138bd8]
call fcn.1400d8c90
cmp dword [0x140138bd8], 0xffffffff
jne 0x140037e8b
xorps xmm0, xmm0
movups xmmword [0x140138bc8], xmm0
movups xmmword [0x140138bb8], xmm0
lea rcx, [0x140138bd8]
call fcn.1400d8d28
mov rdx, qword [0x140138bd0]
test rdx, rdx
mov rax, qword [0x140138bc0]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x140037f4e
shl rdx, 3
add rdx, qword [0x140138bb8]
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.140031860
mov rbx, qword [rdi]
test rbx, rbx
je 0x140037f35
cmp byte [rbp + 0x17], 0
jns 0x140037edf
mov rdi, qword [rsp + 0xa0]
jmp 0x140037ee7
lea rdi, [rsp + 0xa0]
lea rcx, [rdi + r13]
mov qword [rsp + 0x60], rcx
test rdi, rdi
je 0x140037f47
call fcn.1400f1060
lea rcx, [rsp + 0x60]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r13, rax
add rdi, rax
lea r9, [rsp + 0x50]
mov qword [r9], rdi
mov qword [r9 + 8], r13
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [rbx + 8]
lea rcx, [rsp + 0x90]
call fcn.140031840
jmp 0x140037a9b
xor eax, eax
jmp 0x140037efa
int3
int3