Function at 0x140048af0
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, 0x4b8
mov rsi, rcx
mov rax, qword [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
lea rax, [0x1400bf448]
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 0x140048d24
mov rcx, qword [r12 + rcx + 0x28]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x10
lea rbx, [rsp + 0xa0]
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [rax + 0x18]
mov rbp, qword [rbx + 8]
mov rax, qword [r12]
movsxd rcx, dword [rax + 4]
add rcx, r12
lea rdi, [rsp + 0xa0]
mov rdx, rdi
call fcn.140006390
lea rdx, [0x1400e6fa0]
mov rcx, rdi
call fcn.140022180
mov rbx, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbx + 0x38]
mov ebx, eax
mov rcx, rdi
call fcn.140009160
mov rcx, r12
mov edx, ebx
call fcn.140006dc0
mov rcx, r12
call fcn.140006280
lea r15, [rsi + 0x18]
lea rbx, [rsp + 0x80]
mov rcx, r15
mov rdx, rbx
call fcn.1400036a0
test byte [0x1400e4b00], 0x19
jne 0x140048d3f
mov rax, qword [0x1400e8720]
test rax, rax
je 0x140048c14
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
lea rbx, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
call rax
test al, al
jne 0x140048f11
mov eax, dword [0x1400e45f8]
test al, 2
jne 0x140048ead
test al, 4
jne 0x140048c31
cmp eax, 1
ja 0x140048c78
cmp dword [rsi + 8], 2
jl 0x140048c78
mov ecx, 2
call fcn.140091e38
lea rcx, [rsp + 0x80]
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.1400a410c
mov ecx, 2
call fcn.140091e38
mov rcx, rax
call fcn.1400a3d08
mov eax, dword [0x1400e45f8]
test al, 1
jne 0x140048ec8
cmp dword [rsi + 8], 3
je 0x140048e4c
lea rbx, [rsp + 0x80]
cmp byte [rbx + 0x17], 0
jns 0x140048ca5
mov rcx, qword [rsp + 0x80]
call fcn.14008d81c
lea rcx, [rsi + 0x138]
call fcn.140059b90
lea rbx, [rsi + 0x80]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1400ba4d0]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1400ba4e0]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x140048ce7
mov rcx, qword [r12 + 0x48]
call fcn.14008d81c
mov rcx, r15
call fcn.140005ea0
mov rcx, r15
call fcn.1400030a0
mov rcx, rbx
call fcn.140005e90
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.14008db90
nop
add rsp, 0x4b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [0x1400bad60]
movaps xmmword [rsp + 0xa0], xmm0
mov rbp, 0xffffffffffffffff
jmp 0x140048b68
movzx edi, byte [rsp + 0x97]
test dil, dil
jns 0x140048d5c
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rax, qword [rsi + 0x118]
cmp rdi, rax
cmovb rax, rdi
add rbx, rax
sub rdi, rax
mov ecx, 0x30
call fcn.14008d7cc
mov r13, rax
mov r9d, dword [rsi + 0x128]
lea r14, [rsp + 0xa0]
mov qword [r14], rbx
mov qword [r14 + 8], rdi
mov rdx, qword [rsi + 0x120]
mov rcx, rax
mov r8, r14
call fcn.14005a780
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebx, eax
lea rdi, [rsp + 0x98]
mov rcx, rdi
call fcn.14004a7b0
mov word [r14], 0x801
lea rax, str.message
mov qword [r14 + 8], rax
mov qword [r14 + 0x18], r13
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0x8008
lea rdx, [0x1400e4b00]
lea r8, str.LogMessage
mov cl, 0x49
xor r9d, r9d
call fcn.14005def0
mov al, byte [r14]
test al, al
je 0x140048bd9
xor edi, edi
cmp byte [rsp + rdi + 0xa1], 8
jne 0x140048e3c
mov rcx, qword [rsp + rdi*8 + 0xb8]
test rcx, rcx
je 0x140048e3c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov al, byte [rsp + 0xa0]
inc rdi
movzx ecx, al
cmp rdi, rcx
jb 0x140048e14
jmp 0x140048bd9
mov rcx, qword [0x1400e87f0]
lea rbx, [rsp + 0x80]
test rcx, rcx
je 0x140048e83
movzx eax, byte [rbx + 0x17]
test al, al
mov rdi, qword [rbx]
cmovns rdi, rbx
lea rdx, [rsp + 0x70]
mov qword [rdx], rdi
cmovs rax, qword [rbx + 8]
mov qword [rdx + 8], rax
call fcn.14004dd60
mov dword [rsp + 0xa0], 0xbedead01
mov dword [rsp + 0x4a4], 0x5050dead
cmp byte [rbx + 0x17], 0
jns 0x140048f24
mov rdx, qword [rsp + 0x80]
jmp 0x140048f2c
cmp byte [rsp + 0x97], 0
jns 0x14004905e
mov rcx, qword [rsp + 0x80]
jmp 0x140049066
call fcn.140048300
test al, al
je 0x140048c80
lea rdx, [rsp + 0x80]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1400e8738]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140048c80
cmp byte [rsp + 0x97], 0
jns 0x140048ca5
jmp 0x140048c98
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xa4]
mov r8d, 0x400
call fcn.14003eac0
lea rcx, [rsp + 0xa0]
call fcn.1400030a0
mov eax, dword [0x1400e8760]
mov ecx, dword [0x1400e8628]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140048f9f
lea rcx, [0x1400e8760]
call fcn.14008d940
cmp dword [0x1400e8760], 0xffffffff
jne 0x140048f9f
xorps xmm0, xmm0
movups xmmword [0x1400e8750], xmm0
movups xmmword [0x1400e8740], xmm0
lea rcx, [0x1400e8760]
call fcn.14008d9d8
mov rax, qword [0x1400e8750]
cmp rax, qword [0x1400e8758]
je 0x1400490e4
mov eax, dword [0x1400e8760]
mov ecx, dword [0x1400e8628]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140049006
lea rcx, [0x1400e8760]
call fcn.14008d940
cmp dword [0x1400e8760], 0xffffffff
jne 0x140049006
xorps xmm0, xmm0
movups xmmword [0x1400e8750], xmm0
movups xmmword [0x1400e8740], xmm0
lea rcx, [0x1400e8760]
call fcn.14008d9d8
mov rdx, qword [0x1400e8758]
test rdx, rdx
mov rax, qword [0x1400e8748]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x1400490e7
shl rdx, 3
add rdx, qword [0x1400e8740]
lea rdi, [rsp + 0x98]
mov rcx, rdi
call fcn.14003dfb0
mov r14, qword [rdi]
test r14, r14
je 0x1400490ce
cmp byte [rbx + 0x17], 0
jns 0x140049077
mov rdi, qword [rsp + 0x80]
jmp 0x14004907f
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400e45f8]
jmp 0x140048c22
lea rdi, [rsp + 0x80]
lea rcx, [rdi + rbp]
mov qword [rsp + 0x60], rcx
test rdi, rdi
je 0x1400490e0
call fcn.1400a5ba0
lea rcx, [rsp + 0x60]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub rbp, rax
add rdi, rax
lea r9, [rsp + 0x50]
mov qword [r9], rdi
mov qword [r9 + 8], rbp
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], rcx
mov rcx, r14
call qword [r14 + 8]
lea rcx, [rsp + 0x98]
call fcn.14003df90
jmp 0x140048c92
xor eax, eax
jmp 0x140049092
int3
int3