Function at 0x140055870
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 [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
lea rax, [0x1401bf0f8]
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 0x140055aa9
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.140015070
lea rdx, [0x140211708]
mov rcx, rdi
call fcn.140031900
mov rbp, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbp + 0x38]
mov ebx, eax
mov rcx, rdi
call fcn.140018650
mov rcx, r12
mov edx, ebx
call fcn.1400162b0
mov rcx, r12
call fcn.140014f60
lea r14, [rsi + 0x18]
lea rbx, [rsp + 0xa0]
mov rcx, r14
mov rdx, rbx
call fcn.14000f300
test byte [0x14020f010], 0x19
jne 0x140055ac4
mov rax, qword [0x140212510]
test rax, rax
je 0x14005598c
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 0x140055cc6
mov eax, dword [0x14020e608]
test al, 2
jne 0x140055c57
test al, 4
jne 0x140055a5d
cmp eax, 1
ja 0x1400559b1
cmp dword [rsi + 8], 2
jge 0x140055a5d
test al, 1
jne 0x140055c7d
cmp dword [rsi + 8], 3
je 0x140055bf2
lea rbp, [rsp + 0xa0]
cmp byte [rbp + 0x17], 0
jns 0x1400559de
mov rcx, qword [rsp + 0xa0]
call fcn.140180390
lea rcx, [rsi + 0x138]
call fcn.14009da90
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1401b77d8]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1401b7770]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
lea rsi, [rsi + 0x80]
jns 0x140055a20
mov rcx, qword [r12 + 0x48]
call fcn.140180390
mov rcx, r14
call fcn.140014b60
mov rcx, r14
call fcn.140011890
mov rcx, rsi
call fcn.140014b50
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140180700
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.1401849e8
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.14019b3f8
mov ecx, 2
call fcn.1401849e8
mov rcx, rax
call fcn.14019a398
mov eax, dword [0x14020e608]
jmp 0x1400559b1
movaps xmm0, xmmword [0x1401b7670]
movaps xmmword [rsp + 0xc0], xmm0
mov r13, 0xffffffffffffffff
jmp 0x1400558e8
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.14009c490
mov ecx, 0x30
call fcn.140180340
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.14009db10
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebp, eax
lea rcx, [rsp + 0xb8]
call fcn.1400997b0
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, [0x14020f010]
lea r8, str.LogMessage
mov cl, 0x49
xor r9d, r9d
call fcn.1400a1480
mov al, byte [r15]
test al, al
je 0x140055959
xor edi, edi
cmp byte [rsp + rdi + 0xc1], 8
jne 0x140055be2
mov rcx, qword [rsp + rdi*8 + 0xd8]
test rcx, rcx
je 0x140055be2
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov al, byte [rsp + 0xc0]
inc rdi
movzx ecx, al
cmp rdi, rcx
jb 0x140055bba
jmp 0x140055959
mov rcx, qword [0x140214d90]
lea rbp, [rsp + 0xa0]
test rcx, rcx
je 0x140055c2a
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.1400a5940
mov dword [rsp + 0xc0], 0xbedead01
mov dword [rsp + 0x4c4], 0x5050dead
cmp byte [rbp + 0x17], 0
jns 0x140055cd9
mov rdx, qword [rsp + 0xa0]
jmp 0x140055ce1
cmp byte [rsp + 0xb7], 0
jns 0x140055c69
mov rbx, qword [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14020e608]
jmp 0x14005599a
call fcn.140055060
test al, al
je 0x1400559b9
lea rdx, [rsp + 0xa0]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x140212528]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400559b9
cmp byte [rsp + 0xb7], 0
jns 0x1400559de
jmp 0x1400559d1
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xc4]
mov r8d, 0x400
call fcn.14005e9e0
lea rcx, [rsp + 0xc0]
call fcn.140011890
mov eax, dword [0x140212550]
mov ecx, dword [0x140214838]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140055d54
lea rcx, [0x140212550]
call fcn.1401804b0
cmp dword [0x140212550], 0xffffffff
jne 0x140055d54
xorps xmm0, xmm0
movups xmmword [0x140212540], xmm0
movups xmmword [0x140212530], xmm0
lea rcx, [0x140212550]
call fcn.140180548
mov rax, qword [0x140212540]
cmp rax, qword [0x140212548]
je 0x140055e7b
mov eax, dword [0x140212550]
mov ecx, dword [0x140214838]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140055dbb
lea rcx, [0x140212550]
call fcn.1401804b0
cmp dword [0x140212550], 0xffffffff
jne 0x140055dbb
xorps xmm0, xmm0
movups xmmword [0x140212540], xmm0
movups xmmword [0x140212530], xmm0
lea rcx, [0x140212550]
call fcn.140180548
mov rdx, qword [0x140212548]
test rdx, rdx
mov rax, qword [0x140212538]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x140055e7e
shl rdx, 3
add rdx, qword [0x140212530]
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.14004bf30
mov rbx, qword [rdi]
test rbx, rbx
je 0x140055e65
cmp byte [rbp + 0x17], 0
jns 0x140055e0f
mov rdi, qword [rsp + 0xa0]
jmp 0x140055e17
lea rdi, [rsp + 0xa0]
lea rcx, [rdi + r13]
mov qword [rsp + 0x60], rcx
test rdi, rdi
je 0x140055e77
call fcn.1401a0a10
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 + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x90]
call fcn.14004bf10
jmp 0x1400559cb
xor eax, eax
jmp 0x140055e2a
int3
int3