Function at 0x180059920
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
mov ebx, dword [rcx + 0x348]
mov eax, dword [rdx + 0x10]
mov rbp, qword [rcx + 0xc0]
sub eax, dword [rdx + 0x18]
mov r12, qword [rcx + 0xc8]
xor r14d, r14d
shl eax, 3
mov rdi, rcx
mov r15, rdx
sub eax, dword [rdx + 0x24]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x78], r12
add eax, dword [rdx + 0xc]
mov r13d, r14d
mov dword [rsp + 0x70], r14d
mov dword [rsp + 0x88], eax
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x110], ebx
mov dword [rsp + 0x6c], eax
mov eax, dword [rcx + 0x14]
mov ecx, dword [rcx + 0x330]
mov dword [rsp + 0x128], eax
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
cmp eax, 1
jge 0x1800599b0
lea esi, [r14 + 1]
jmp 0x1800599b7
mov esi, ebx
cmp ecx, ebx
cmovl esi, ecx
shl ecx, 0xa
lea r10, [r12 + 0x38]
mov dword [rsp + 0x120], esi
mov eax, ecx
mov qword [rsp + 0x80], r10
cdq
idiv esi
mov dword [rsp + 0x64], eax
mov eax, ebx
shl eax, 0xa
cdq
idiv esi
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], eax
cmp dword [r12 + 0x164], r13d
jne 0x180059a23
mov eax, dword [rdi + 4]
mov r9d, dword [rdi]
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov rcx, r10
mov dword [rsp + 0x28], 0x45
mov dword [rsp + 0x20], eax
call fcn.180054e50
mov dword [r12 + 0x164], 1
lea r10, [r12 + 0x38]
mov ecx, 1
sub ecx, dword [rdi + 0x64]
mov dword [rdi + 0x64], ecx
test byte [rbp + 0xc], 2
mov dword [rbp + 0x1c], ecx
mov eax, dword [rdi + 0x68]
mov dword [rbp + 0x20], eax
je 0x180059a8c
cmp dword [r12 + 0x168], ecx
je 0x180059a8c
mov eax, dword [rdi + 0x6c]
mov r9, qword [rdi + 0x148]
mov r8, qword [rdi + 0x118]
mov rdx, qword [rdi + 0x100]
mov dword [rsp + 0x38], ecx
mov rcx, qword [r10]
and eax, 4
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 8]
mov dword [rsp + 0x20], eax
call fcn.1800551b0
mov r11d, dword [rbp + 0x1c]
mov dword [r12 + 0x168], r11d
test dword [rbp + 0xc], 0x4000
mov dword [rbp + 0x160], r14d
mov qword [rbp + 0x154], r14
mov qword [rbp + 0x14c], r14
mov qword [rbp + 0x144], r14
mov dword [rbp + 0x14], 1
je 0x180059ad7
movzx eax, word [rdi + 0x14]
movzx r9d, word [rdi + 0x10]
mov r8, qword [rbp + 0x50]
movzx edx, word [rdi + 8]
lea rcx, [rbp + 0x38]
mov word [rsp + 0x20], ax
call fcn.180056840
mov rdx, qword [rdi + 0xc0]
mov qword [rsp + 0x30], r14
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call fcn.180057f00
mov rdx, rbp
mov rcx, rdi
call fcn.180058840
test byte [rbp + 8], 8
je 0x180059d23
mov eax, dword [rsp + 0x110]
mov rdx, qword [rbp + 0x50]
lea rbx, [rdi + 0x148]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rbx
lea r12, [rdi + 0x118]
lea r14, [rdi + 0x100]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x30], r12
mov r9, rbp
mov r8, rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.18006ce10
test dword [rbp + 0x10], 0x200
mov r11, rax
mov eax, dword [rax]
mov dword [rbp + 0x58], eax
mov eax, dword [r11 + 4]
mov r9, rbp
mov dword [rbp + 0x5c], eax
mov eax, dword [r11 + 8]
mov dword [rbp + 0x60], eax
mov eax, dword [r11 + 0xc]
mov dword [rbp + 0x64], eax
mov eax, dword [r11 + 0x10]
mov dword [rbp + 0x68], eax
mov eax, dword [r11 + 0x14]
mov dword [rbp + 0x6c], eax
mov eax, dword [r11 + 0x18]
mov dword [rbp + 0x70], eax
mov eax, dword [r11 + 0x1c]
mov dword [rbp + 0x74], eax
je 0x180059be9
mov rdx, qword [rbp + 0x50]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
mov r14, qword [rsp + 0x80]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
lea rcx, [rbp + 0x58]
mov r8, rdi
mov qword [rsp + 0x20], rax
call fcn.18006e240
jmp 0x180059c1b
mov rax, qword [rdi + 0x178]
mov r14, qword [rsp + 0x80]
mov r8, qword [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x38]
mov rdx, rdi
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x58]
mov qword [rsp + 0x20], r14
call fcn.18006e0c0
mov r9d, dword [rdi]
mov r11d, eax
mov eax, dword [rdi + 0x14]
mov edx, 3
lea r12, [rbp + 0xf8]
lea r8, [rbp + 0x58]
imul eax, dword [rdi + 0x10]
lea ebx, [r11 + rax*2]
mov eax, dword [rdi + 4]
mov ecx, edx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], eax
call fcn.180040f00
test ebx, ebx
jns 0x180059cbf
cmp dword [rbp + 0x60], r13d
jne 0x180059c6b
cmp dword [rbp + 0x64], r13d
jne 0x180059c6b
cmp dword [rbp + 0x68], r13d
jne 0x180059c6b
cmp dword [rbp + 0x6c], r13d
je 0x180059cbf
mov dword [rbp + 0x14], 3
mov r9d, dword [rdi + 8]
mov r8d, dword [rdi + 0x6c]
lea rax, [rdi + 0x178]
shr r8d, 2
mov edx, r9d
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 0x50]
and r8d, 1
mov qword [rsp + 0x50], rax
mov eax, dword [rbp + 0x1c]
shr edx, 1
mov dword [rsp + 0x48], eax
mov eax, dword [rdi + 0x68]
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r9d
jmp 0x180059d02
mov r8d, dword [rdi + 8]
mov rax, qword [rbp + 0x50]
mov edx, dword [rdi + 0x6c]
shr edx, 2
mov ecx, r8d
and edx, 1
shr ecx, 1
xor r9d, r9d
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], rax
mov eax, dword [rbp + 0x1c]
mov dword [rsp + 0x48], eax
mov eax, dword [rdi + 0x68]
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r8d
mov r9d, dword [rdi + 0x14]
mov r8d, dword [rdi + 0x10]
mov rdx, r14
mov rcx, r12
call fcn.1800411f0
mov esi, dword [rsp + 0x120]
mov ebx, dword [rsp + 0x110]
mov eax, dword [rdi + 0x330]
or r12d, 0xffffffff
mov r14d, reloc.WS2_32.dll_WSASetLastError
test eax, eax
jle 0x18005a11c
mov r9d, dword [rsp + 0x64]
mov r10d, dword [rsp + 0x60]
mov r11d, dword [rsp + 0x128]
nop dword [rax]
mov r8d, dword [rsp + 0x70]
lea ecx, [r10 + 0x200]
lea r12d, [r9 + 0x200]
sar ecx, 0xa
mov eax, r8d
sar r12d, 0xa
add r8d, ecx
shl ecx, 0xa
mov dword [rsp + 0x70], r8d
imul eax, r11d
lea eax, [rax + rbx - 1]
cdq
idiv ebx
mov r15d, eax
mov eax, r8d
imul eax, r11d
lea eax, [rax + rbx - 1]
cdq
idiv ebx
mov dword [rsp + 0x80], eax
sub eax, r15d
lea eax, [rax + r12 - 1]
cdq
idiv r12d
movsxd r8, eax
mov eax, dword [rsp + 0x68]
sub eax, ecx
add r10d, eax
mov eax, dword [rdi + 0x330]
shl eax, 0xa
mov dword [rsp + 0x60], r10d
cdq
idiv esi
xor esi, esi
mov ecx, eax
mov eax, r12d
shl eax, 0xa
sub ecx, eax
add r9d, ecx
mov dword [rsp + 0x64], r9d
test r12d, r12d
jle 0x180059eaa
mov ebp, dword [rsp + 0x80]
mov r14, r8
movsxd rbx, r13d
shl r14, 2
imul rbx, rbx, 0x70
nop word [rax + rax]
mov rcx, qword [rdi + 0x338]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + rbx + 0x28]
call fcn.18000e2e0
mov r11, qword [rdi + 0x338]
mov qword [r11 + rbx + 0x68], rdi
mov rax, qword [rdi + 0x338]
mov dword [rax + rbx + 0x18], esi
mov rax, qword [rdi + 0x338]
mov dword [rax + rbx + 0x1c], r12d
mov rax, qword [rdi + 0x338]
mov dword [rax + rbx + 0x24], ebp
mov rax, qword [rdi + 0x338]
mov dword [rax + rbx + 0x20], r15d
lea eax, [rsi + r13]
test al, 1
je 0x180059e61
mov rdx, qword [rdi + 0x120]
jmp 0x180059e68
mov rdx, qword [rdi + 0x128]
sar eax, 1
inc esi
add rbx, 0x70
imul eax, dword [rdi + 8]
shl eax, 4
mov ecx, eax
mov rax, qword [rdi + 0x338]
add rcx, rdx
mov qword [rax + rbx - 0x60], rcx
cmp esi, r12d
jl 0x180059e00
mov ebx, dword [rsp + 0x110]
mov r9d, dword [rsp + 0x64]
mov r10d, dword [rsp + 0x60]
mov r11d, dword [rsp + 0x128]
mov rdx, qword [rdi + 0x338]
mov esi, dword [rsp + 0x120]
movsxd r8, r13d
movsxd rax, r12d
add r13d, r12d
add rax, r8
imul r8, r8, 0x70
imul rax, rax, 0x70
mov rcx, qword [rax + rdx - 0x48]
sub rcx, 4
mov qword [r8 + rdx + 0x30], rcx
cmp r13d, dword [rdi + 0x330]
jl 0x180059d50
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0x118]
mov ebx, 1
or r12d, 0xffffffff
xor r13d, r13d
mov r14d, reloc.WS2_32.dll_WSASetLastError
cmp dword [rdi + 0x330], ebx
jle 0x180059f66
mov esi, r14d
nop word [rax + rax]
movsxd r9, ebx
lea r8, [fcn.18006c180]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
imul r9, r9, 0x70
add r9, qword [rdi + 0x338]
call qword [sym.imp.KERNEL32.dll_CreateThread]
inc ebx
add rsi, 0x70
mov r11, rax
mov rax, qword [rdi + 0x338]
mov qword [rsi + rax - 0x70], r11
cmp ebx, dword [rdi + 0x330]
jl 0x180059f20
mov rcx, qword [rdi + 0x338]
call fcn.18006c180
mov esi, 1
cmp dword [rdi + 0x330], esi
jle 0x180059fb5
mov rbx, r14
mov rcx, qword [rdi + 0x338]
mov edx, r12d
mov rcx, qword [rcx + rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x338]
mov rcx, qword [rcx + rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
add rbx, 0x70
cmp esi, dword [rdi + 0x330]
jl 0x180059f82
mov dword [rbp + 0x20], r13d
cmp dword [rdi + 0x330], 0
mov edx, r13d
jle 0x18005a02c
mov r10d, dword [rbp + 0x14c]
mov r11d, dword [rbp + 0x148]
mov r8d, r13d
mov rcx, r13
nop dword [rax]
mov rax, qword [rdi + 0x338]
add r11d, dword [rax + rcx + 0x3c]
mov dword [rbp + 0x148], r11d
mov rax, qword [rdi + 0x338]
add r10d, dword [rax + rcx + 0x40]
mov dword [rbp + 0x14c], r10d
mov rax, qword [rdi + 0x338]
mov r9d, dword [rax + rcx + 0x44]
cmp r9d, r8d
jbe 0x18005a01e
mov r8d, r9d
mov dword [rbp + 0x20], r9d
inc edx
add rcx, 0x70
cmp edx, dword [rdi + 0x330]
jl 0x180059fe0
mov ebx, dword [rsp + 0x110]
mov r8d, dword [rdi + 0x20]
mov eax, dword [rbp + 0x30]
mov r9d, 1
cdq
idiv r8d
mov ecx, eax
mov rax, qword [rsp + 0x78]
mov dword [rbp + 0x2c], edx
mov eax, dword [rax + 0x30]
cdq
idiv r8d
mov r8, rbp
mov rdx, rdi
sub ecx, eax
mov rax, qword [rbp + 0x50]
mov dword [rbp + 0x28], ecx
mov ecx, dword [rax + 0xf0]
mov dword [rsp + 0x20], ecx
mov rcx, r15
call fcn.180066a40
mov r11d, dword [rsp + 0x120]
mov r12d, dword [rsp + 0x68]
xor edx, edx
mov esi, edx
mov r10d, edx
lea r13d, [rdx + 0x20]
test r11d, r11d
jle 0x18005a25b
mov r14d, dword [rsp + 0x128]
mov r8d, edx
or ebp, 0xffffffff
mov r15d, r12d
nop dword [rax + rax]
lea edx, [r12 + 0x200]
mov eax, r15d
sar edx, 0xa
mov ecx, edx
lea r9d, [rdx + rsi]
shl ecx, 0xa
sub eax, ecx
add r12d, eax
mov rax, qword [rdi + 0x338]
imul esi, r14d
mov qword [rax + r8 + 0x68], rdi
mov eax, r9d
imul eax, r14d
lea eax, [rax + rbx - 1]
cdq
idiv ebx
mov ecx, eax
mov rax, qword [rdi + 0x338]
mov dword [rax + r8 + 0x24], ecx
lea eax, [rsi + rbx - 1]
cdq
idiv ebx
mov ecx, eax
mov rax, qword [rdi + 0x338]
mov dword [rax + r8 + 0x20], ecx
test r10b, 1
je 0x18005a168
mov rdx, qword [rdi + 0x120]
jmp 0x18005a16f
mov r8, qword [rsp + 0x78]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], 0x100000
lea rax, [rdi + 0x178]
lea rcx, [rdi + 0x148]
lea rdx, [rdi + 0x118]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
lea r9, [rdi + 0x100]
mov rdx, rbp
mov rcx, rdi
call fcn.18006bb00
jmp 0x18005a033
mov rdx, qword [rdi + 0x128]
mov rax, qword [rdi + 0x338]
mov ecx, r10d
mov esi, r9d
sar ecx, 1
imul ecx, dword [rdi + 8]
shl ecx, 4
add rcx, rdx
mov qword [rax + r8 + 0x10], rcx
test r10d, r10d
jle 0x18005a233
mov rax, qword [rdi + 0x338]
xor edx, edx
mov rcx, qword [rax + r8 + 0x60]
mov dword [rcx + 0x1c], edx
mov rax, qword [rdi + 0x338]
mov rcx, qword [rax + r8 + 0x60]
mov dword [rcx + 0x14], edx
mov rax, qword [rdi + 0x338]
mov rcx, qword [rax + r8 + 0x60]
mov dword [rcx + 0x10], edx
mov rax, qword [rdi + 0x338]
mov rcx, qword [rax + r8 + 0x60]
mov dword [rcx + 0xc], edx
mov rax, qword [rdi + 0x338]
mov rcx, qword [rax + r8 + 0x60]
mov dword [rcx], edx
mov rax, qword [rdi + 0x338]
mov r9, qword [rax + r8 + 0x58]
mov rax, qword [r9 + 0x18]
mov ebx, dword [r9 + 0x24]
mov qword [r9 + 0x10], rax
mov r11d, dword [rax]
bswap r11d
mov dword [r9], r11d
mov eax, dword [rax + 4]
bswap eax
mov dword [r9 + 4], eax
test ebx, ebx
je 0x18005a21c
mov ecx, r13d
mov edx, ebp
sub ecx, ebx
shl edx, cl
and edx, r11d
mov r11d, dword [rsp + 0x120]
mov dword [r9 + 0xc], ebx
mov ebx, dword [rsp + 0x110]
mov dword [r9 + 8], edx
inc r10d
add r8, 0x70
cmp r10d, r11d
jl 0x18005a0b0
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0x118]
mov r14d, reloc.WS2_32.dll_WSASetLastError
xor edx, edx
mov rax, qword [rdi + 0x338]
lea rcx, [rbp + 0x144]
mov qword [rax + 0x58], r15
mov rax, qword [rdi + 0x338]
mov qword [rax + 0x60], rcx
cmp r11d, 1
jle 0x18005a2d6
mov rbx, r14
mov rsi, r14
lea r12d, [r11 - 1]
nop dword [rax + rax]
mov rax, qword [rdi + 0x338]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], edx
lea r8, [fcn.1800592a0]
lea r9, [rsi + rax]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rbx, 0x70
add rsi, 0x70
dec r12
mov r11, rax
mov rax, qword [rdi + 0x338]
mov qword [rbx + rax - 0x70], r11
mov edx, 0
jne 0x18005a290
mov rcx, qword [rdi + 0x338]
call fcn.1800592a0
movsxd r12, dword [rsp + 0x120]
mov rbx, r12
cmp r12, 1
jle 0x18005a32f
dec rbx
or esi, 0xffffffff
nop dword [rax]
mov rcx, qword [rdi + 0x338]
mov edx, esi
mov rcx, qword [rcx + r14]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x338]
mov rcx, qword [rcx + r14]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r14, 0x70
dec rbx
jne 0x18005a300
jmp 0x18005a332
or esi, 0xffffffff
mov r8d, dword [r15 + 0x10]
sub r8d, dword [r15 + 0x18]
cmp dword [r15 + 0xc], 0
je 0x18005a35a
mov ecx, dword [r15 + 8]
mov rax, qword [r15 + 0x10]
bswap ecx
mov dword [rax], ecx
mov eax, dword [r15 + 0xc]
add eax, 7
shr eax, 3
add r8d, eax
mov eax, dword [r15 + 0x24]
test eax, eax
je 0x18005a368
shr eax, 3
sub r8d, eax
mov ebx, dword [rsp + 0x88]
mov r9d, r12d
mov rcx, rdi
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
sub r8d, eax
mov dword [rbp + 0x140], r8d
mov rdx, qword [rdi + 0xc0]
mov r8, r15
call fcn.180058bb0
lea rcx, [rbp + 0x144]
mov rdx, rdi
call fcn.1800591d0
mov r11d, dword [rdi + 0x34]
movsxd r12, dword [rsp + 0x128]
imul r11d, r12d
mov ecx, dword [rsp + 0x6c]
mov eax, 0x51eb851f
imul r11d, ecx
imul r11d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [rbp + 0x150]
add eax, dword [rbp + 0x154]
cmp eax, edx
jge 0x18005a543
mov eax, dword [rdi + 0x1ac]
cmp dword [rdi + 0x1a8], eax
jge 0x18005a3fe
test byte [rdi + 0x28], 2
jne 0x18005a543
cmp dword [rbp + 0x14], 1
jne 0x18005a543
xor r8d, r8d
mov eax, r12d
mov dword [rbp + 0x144], r8d
mov qword [rbp + 0x150], r8
imul eax, ecx
mov dword [rbp + 0x158], eax
mov rax, qword [r15 + 0x18]
mov qword [r15 + 0x10], rax
mov edx, dword [rax]
bswap edx
mov dword [r15], edx
mov eax, dword [rax + 4]
bswap eax
mov dword [r15 + 4], eax
mov eax, dword [r15 + 0x24]
test eax, eax
je 0x18005a456
sub r13d, eax
movzx ecx, r13b
shl esi, cl
and esi, edx
mov dword [r15 + 8], esi
jmp 0x18005a45a
mov dword [r15 + 8], r8d
mov rsi, qword [rsp + 0x78]
mov dword [r15 + 0xc], eax
mov r8d, dword [rdi + 0x20]
mov eax, dword [rbp + 0x30]
xor r9d, r9d
cdq
idiv r8d
mov ecx, eax
mov dword [rbp + 0x2c], edx
mov eax, dword [rsi + 0x30]
cdq
idiv r8d
mov r8, rbp
mov rdx, rdi
sub ecx, eax
mov rax, qword [rbp + 0x50]
mov dword [rbp + 0x28], ecx
mov ecx, dword [rax + 0xf0]
mov dword [rsp + 0x20], ecx
mov rcx, r15
call fcn.180066a40
mov r11d, dword [rsi + 0x18]
lea rcx, [rbp + 0x38]
mov dword [rbp + 0x18], r11d
mov eax, dword [rsi + 0x10]
lea rdx, [rsi + 0x38]
mov dword [rbp + 0x10], eax
mov eax, dword [rsi + 0x1c]
mov dword [rbp + 0x1c], eax
mov eax, dword [rsi + 0x20]
mov dword [rbp + 0x20], eax
mov eax, dword [rsi + 0x24]
mov dword [rbp + 0x24], eax
mov rax, qword [rsi + 0x30]
mov qword [rbp + 0x30], rax
mov r9d, dword [rdi + 4]
mov r8d, dword [rdi + 8]
call fcn.180054df0
movsxd rax, dword [rsp + 0x6c]
mov rdx, qword [rsi + 0x50]
mov rcx, qword [rbp + 0x50]
mov r8, r12
imul r8, rax
imul r8, r8, 0x1e8
call fcn.18000cad0
mov eax, dword [r15 + 0xc]
mov r8d, 8
and eax, 7
lea rcx, [0x1800878b0]
sub r8d, eax
movsxd rax, r8d
mov edx, dword [rcx + rax*4 - 4]
mov rcx, r15
call fcn.180053590
mov eax, dword [r15 + 0x10]
sub eax, dword [r15 + 0x18]
shl eax, 3
sub eax, ebx
sub eax, dword [r15 + 0x24]
add eax, dword [r15 + 0xc]
shr eax, 3
mov dword [rbp + 0x140], eax
xor eax, eax
jmp 0x18005a5a3
mov rcx, qword [rdi + 0xc0]
lea rdx, [rdi + 0x1c0]
mov dword [rcx + 0x164], 0
mov rcx, qword [rdi + 0xc0]
mov dword [rcx + 0x168], 0xffffffff
lea rcx, [rdi + 0x100]
call fcn.180054dc0
lea rdx, [rdi + 0x1d8]
lea rcx, [rdi + 0x118]
call fcn.180054dc0
lea rdx, [rdi + 0x1f0]
lea rcx, [rdi + 0x148]
call fcn.180054dc0
mov eax, 1
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret