Function at 0x140316c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x98], rax
mov byte [rsp + 0x4c], 0
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x128]
call fcn.14043d3a0
cmp qword [rsp + 0x198], 0
je 0x140316ccd
mov rax, qword [rsp + 0x198]
cmp dword [rax], 0x40
jl 0x140316ccd
mov qword [rsp + 0x198], 0
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x5c]
and eax, 0x10
test eax, eax
je 0x140316d01
movzx eax, word [rsp + 0x1a8]
btr eax, 8
mov word [rsp + 0x1a8], ax
mov rax, qword [rsp + 0x188]
cmp dword [rax], 0x40
jle 0x140316d2f
mov r8d, 0x40
lea rdx, str.at_most__d_tables_in_a_join
mov rcx, qword [rsp + 0x180]
call fcn.140300630
xor eax, eax
jmp 0x140317e72
movzx eax, word [rsp + 0x1a8]
and eax, 0x20
test eax, eax
je 0x140316d4b
mov dword [rsp + 0xb8], 1
jmp 0x140316d5c
mov rax, qword [rsp + 0x188]
mov eax, dword [rax]
mov dword [rsp + 0xb8], eax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
dec eax
cdqe
imul rax, rax, 0x60
add rax, 0x3ff
and rax, 0xfffffffffffffff8
mov dword [rsp + 0xc0], eax
movsxd rax, dword [rsp + 0xc0]
add rax, 0x60
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.1402ff940
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x140316dcc
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
call fcn.1402ffef0
mov qword [rsp + 0x40], 0
jmp 0x140317e43
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x180]
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x188]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x198]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x190]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x1a0]
mov qword [rax + 0x18], rcx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x40]
mov dword [rcx + rax + 0x2c], 0xffffffff
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov dword [rcx + rax + 0x2c], 0xffffffff
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rsp + 0x50]
mov byte [rax + 0x42], cl
mov rcx, qword [rsp + 0x180]
call fcn.1402f5890
mov dword [rsp + 0xbc], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0xbc]
mov dword [rax + 0x34], ecx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0xbc]
mov dword [rax + 0x38], ecx
mov rax, qword [rsp + 0x40]
movzx ecx, word [rsp + 0x1a8]
mov word [rax + 0x40], cx
mov rax, qword [rsp + 0x40]
movzx ecx, word [rsp + 0x1b0]
mov word [rax + 0x28], cx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x180]
mov ecx, dword [rcx + 0xbc]
mov dword [rax + 0x3c], ecx
mov rax, qword [rsp + 0x40]
add rax, 0x43
mov r8d, 0x25
xor edx, edx
mov rcx, rax
call fcn.14043d3a0
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x60
add rax, 0x60
mov ecx, 0x60
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rdx + rcx + 0x398]
mov r8, rax
xor edx, edx
call fcn.14043d3a0
mov rax, qword [rsp + 0x40]
add rax, 0x290
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x40]
add rax, 0x68
mov qword [rsp + 0x130], rax
movsxd rax, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x140]
call fcn.14039b350
mov rax, qword [rsp + 0xe0]
mov dword [rax + 4], 0
mov rax, qword [rsp + 0x40]
add rax, 0x68
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.140393fa0
mov rax, qword [rsp + 0x40]
add rax, 0x68
mov r8b, 0x2c
mov rdx, qword [rsp + 0x190]
mov rcx, rax
call fcn.140394100
cmp dword [rsp + 0x50], 0
jne 0x140316ffa
cmp qword [rsp + 0x198], 0
je 0x140316fc8
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x198]
movzx ecx, byte [rcx]
mov byte [rax + 0x43], cl
movzx eax, word [rsp + 0x1a8]
and eax, 0x100
test eax, eax
je 0x140316fe2
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x47], 1
lea r8, str.SCAN_CONSTANT_ROW
xor edx, edx
mov rcx, qword [rsp + 0x180]
call fcn.1402f50f0
jmp 0x140317070
mov dword [rsp + 0x48], 0
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x70
mov rcx, qword [rsp + 0x188]
mov edx, dword [rcx + rax + 0x4c]
mov rcx, qword [rsp + 0xe0]
call fcn.140399470
mov rax, qword [rsp + 0x40]
add rax, 0x68
movsxd rcx, dword [rsp + 0x48]
imul rcx, rcx, 0x70
mov rdx, qword [rsp + 0x188]
lea rcx, [rdx + rcx + 8]
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x180]
call fcn.1403944b0
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x188]
mov eax, dword [rax]
cmp dword [rsp + 0x48], eax
jl 0x140317002
mov rax, qword [rsp + 0x40]
add rax, 0x68
mov rdx, rax
mov rcx, qword [rsp + 0x188]
call fcn.140394460
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x14031709b
jmp 0x140317e43
mov dword [rsp + 0x48], 0
jmp 0x1403170af
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x130]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x48], eax
jge 0x140317167
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x130]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
movzx eax, word [rax + 0x12]
and eax, 2
test eax, eax
je 0x1403170f6
jmp 0x1403170a5
mov rax, qword [rsp + 0xa8]
cmp qword [rax + 0x38], 0
jne 0x140317162
cmp dword [rsp + 0x50], 0
je 0x140317120
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call fcn.1403a0e10
test eax, eax
je 0x140317162
mov r9d, reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x38]
mov rax, qword [rsp + 0xa8]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x180]
call fcn.14031b300
mov rax, qword [rsp + 0xa8]
movzx eax, word [rax + 0x12]
or eax, 4
mov rcx, qword [rsp + 0xa8]
mov word [rcx + 0x12], ax
jmp 0x1403170a5
movzx eax, word [rsp + 0x1a8]
and eax, 0x100
test eax, eax
je 0x1403171e2
mov rax, qword [rsp + 0x40]
add rax, 0x68
mov r9, qword [rsp + 0x1a0]
mov r8, rax
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x180]
call fcn.140399c30
test eax, eax
je 0x1403171b0
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x47], 1
jmp 0x1403171e2
cmp qword [rsp + 0x198], 0
jne 0x1403171e2
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x40]
bts eax, 7
mov rcx, qword [rsp + 0x40]
mov word [rcx + 0x40], ax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x1a0]
mov qword [rax + 0x10], rcx
cmp dword [rsp + 0x50], 1
jne 0x1403171fa
lea rcx, [rsp + 0x128]
call fcn.1403a0a00
test eax, eax
jne 0x140317271
lea rcx, [rsp + 0x128]
call fcn.14039ecc0
mov dword [rsp + 0x104], eax
cmp dword [rsp + 0x104], 0
je 0x14031721d
jmp 0x140317e43
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.14039fc20
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x14031723b
jmp 0x140317e43
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x140317271
mov rax, qword [rsp + 0x40]
movsx eax, word [rax + 0x60]
inc eax
movzx edx, ax
mov rcx, qword [rsp + 0x40]
call fcn.14039fc20
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x140317271
jmp 0x140317e43
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
jne 0x14031729e
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x30]
and rax, 0x1000
test rax, rax
je 0x14031729e
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x58], 0xffffffffffffffff
mov rax, qword [rsp + 0x180]
cmp dword [rax + 0x30], 0
jne 0x1403172b9
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x1403172be
jmp 0x140317e43
mov qword [rsp + 0xd8], 0xffffffffffffffff
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x42]
cmp eax, 2
jl 0x1403175ee
cmp qword [rsp + 0x1a0], 0
je 0x1403175ee
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x5c]
and eax, 0x100
test eax, eax
jne 0x1403175ee
mov rdx, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0xe0]
call fcn.1403943e0
mov qword [rsp + 0x108], rax
cmp qword [rsp + 0x138], 0
je 0x140317354
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0xe0]
call fcn.1403943e0
mov rcx, qword [rsp + 0x108]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x42]
dec eax
mov dword [rsp + 0x54], eax
jmp 0x14031736f
mov eax, dword [rsp + 0x54]
dec eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 1
jl 0x1403175ee
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx + rax + 0x3e8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x78]
movzx ecx, byte [rcx + 0x10]
imul rcx, rcx, 0x70
lea rax, [rax + rcx + 8]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
movzx eax, byte [rax + 0x3c]
and eax, 8
test eax, eax
jne 0x1403173cd
jmp 0x140317365
movzx eax, word [rsp + 0x1a8]
and eax, 0x100
test eax, eax
jne 0x1403173f4
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x28]
and eax, 0x1000
test eax, eax
jne 0x1403173f4
jmp 0x140317365
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x108]
and rcx, rax
mov rax, rcx
test rax, rax
je 0x140317415
jmp 0x140317365
mov rax, qword [rsp + 0x130]
movsxd rax, dword [rax + 0x14]
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x130]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x70], rax
jmp 0x14031745a
mov rax, qword [rsp + 0x70]
add rax, 0x40
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x110]
cmp qword [rsp + 0x70], rax
jae 0x1403174b2
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 8]
mov rax, qword [rax + 0x38]
and rax, rcx
test rax, rax
je 0x1403174b0
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov eax, dword [rax + 4]
and eax, 1
test eax, eax
je 0x1403174ae
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
movsx eax, word [rax + 0x34]
mov rcx, qword [rsp + 0x120]
cmp eax, dword [rcx + 0x44]
je 0x1403174b0
jmp 0x1403174b2
jmp 0x14031744c
mov rax, qword [rsp + 0x110]
cmp qword [rsp + 0x70], rax
jae 0x1403174c6
jmp 0x140317365
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 8]
not rax
mov rcx, qword [rsp + 0xd8]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x70], rax
jmp 0x140317509
mov rax, qword [rsp + 0x70]
add rax, 0x40
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x110]
cmp qword [rsp + 0x70], rax
jae 0x140317549
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 8]
mov rax, qword [rax + 0x38]
and rax, rcx
test rax, rax
je 0x140317547
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x12]
or eax, 4
mov rcx, qword [rsp + 0x70]
mov word [rcx + 0x12], ax
jmp 0x1403174fb
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x42]
dec eax
cmp dword [rsp + 0x54], eax
je 0x1403175cc
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x42]
dec eax
sub eax, dword [rsp + 0x54]
cdqe
imul rax, rax, 0x60
mov dword [rsp + 0xf8], eax
movsxd rax, dword [rsp + 0xf8]
mov ecx, dword [rsp + 0x54]
inc ecx
movsxd rcx, ecx
imul rcx, rcx, 0x60
mov rdx, qword [rsp + 0x40]
lea rcx, [rdx + rcx + 0x398]
movsxd rdx, dword [rsp + 0x54]
imul rdx, rdx, 0x60
mov r8, qword [rsp + 0x40]
lea rdx, [r8 + rdx + 0x398]
mov qword [rsp + 0x158], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x158]
mov rcx, rax
call fcn.14043cc20
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x42]
dec al
mov rcx, qword [rsp + 0x40]
mov byte [rcx + 0x42], al
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x50], eax
jmp 0x140317365
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
movsx ecx, word [rcx + 0x60]
add ecx, dword [rax + 0xbc]
mov eax, ecx
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov dword [rcx + 0xbc], eax
movzx eax, word [rsp + 0x1a8]
and eax, 4
test eax, eax
je 0x140317775
mov eax, 0x60
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx + rax + 0x3e8]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x90]
and eax, 0x1000
test eax, eax
je 0x140317665
mov dword [rsp + 0xc4], 1
jmp 0x140317670
mov dword [rsp + 0xc4], 0
mov eax, dword [rsp + 0xc4]
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 0
jne 0x1403176de
movzx eax, word [rsp + 0x1a8]
and eax, 8
test eax, eax
je 0x140317775
mov eax, reloc.WS2_32.dll_WSASetLastError
imul rax, rax, 0
mov rcx, qword [rsp + 0x188]
mov rax, qword [rcx + rax + 0x28]
cmp dword [rax + 0x54], 0
jne 0x140317775
mov eax, dword [rsp + 0x90]
and eax, 0x2000
test eax, eax
je 0x1403176de
movzx eax, word [rsp + 0x1a8]
and eax, 0x10
test eax, eax
je 0x140317775
cmp dword [rsp + 0xc8], 0
je 0x1403176f5
mov dword [rsp + 0xcc], 1
jmp 0x140317700
mov dword [rsp + 0xcc], 2
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rsp + 0xcc]
mov byte [rax + 0x45], cl
mov eax, reloc.WS2_32.dll_WSASetLastError
imul rax, rax, 0
mov rcx, qword [rsp + 0x188]
mov rax, qword [rcx + rax + 0x28]
mov eax, dword [rax + 0x40]
and eax, 0x20
test eax, eax
jne 0x140317775
mov eax, dword [rsp + 0x90]
and eax, 0x40
test eax, eax
je 0x140317775
movzx eax, word [rsp + 0x1a8]
and eax, 8
test eax, eax
je 0x140317752
mov byte [rsp + 0x4c], 8
mov eax, dword [rsp + 0x90]
and eax, 0xffffffbf
mov ecx, 0x60
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdx + rcx + 0x3e8]
mov dword [rcx + 0x28], eax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x40]
add rax, 0x398
mov qword [rsp + 0x60], rax
jmp 0x1403177a7
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x60]
add rax, 0x60
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jge 0x140317ca9
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x34]
imul rax, rax, 0x70
mov rcx, qword [rsp + 0x188]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.14032cd90
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x40]
and eax, 2
test eax, eax
jne 0x140317837
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x18], 0
je 0x14031783c
jmp 0x140317a5a
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x28]
and eax, 0x400
test eax, eax
je 0x1403178b8
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
call fcn.14032e8c0
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x44]
mov dword [rsp + 0xfc], eax
mov dword [rsp + 0x30], 0xfffffff4
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xfc]
mov edx, 0xa3
mov rcx, qword [rsp + 0x98]
call fcn.1402f4d70
jmp 0x140317a5a
mov rax, qword [rsp + 0x88]
cmp dword [rax + 0x54], 0
je 0x1403178cb
jmp 0x140317a5a
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x28]
and eax, 0x40
test eax, eax
jne 0x140317a27
movzx eax, word [rsp + 0x1a8]
and eax, 0x20
test eax, eax
jne 0x140317a27
mov dword [rsp + 0xd0], 0x61
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x45]
test eax, eax
je 0x140317931
mov dword [rsp + 0xd0], 0x62
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xb0]
mov edx, dword [rdx + 0x44]
mov dword [rcx + rax + 0x2c], edx
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x84]
mov rax, qword [rsp + 0xb0]
mov edx, dword [rax + 0x44]
mov rcx, qword [rsp + 0x180]
call fcn.140313a70
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x45]
test eax, eax
jne 0x140317a10
mov rax, qword [rsp + 0x88]
movsx eax, word [rax + 0x46]
cmp eax, 0x40
jge 0x140317a10
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x40]
and eax, 0x20
test eax, eax
jne 0x140317a10
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x118], rax
mov dword [rsp + 0xa0], 0
jmp 0x1403179e0
mov rax, qword [rsp + 0x118]
shr rax, 1
mov qword [rsp + 0x118], rax
mov eax, dword [rsp + 0xa0]
inc eax
mov dword [rsp + 0xa0], eax
cmp qword [rsp + 0x118], 0
je 0x1403179ed
jmp 0x1403179bd
movsxd rax, dword [rsp + 0xa0]
mov r9d, 0xfffffffd
mov r8, rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x98]
call fcn.1402f5580
movzx eax, byte [rsp + 0x4c]
movzx edx, ax
mov rcx, qword [rsp + 0x98]
call fcn.1402f53e0
jmp 0x140317a5a
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [rsp + 0x88]
mov r8d, dword [rax + 0x38]
mov edx, dword [rsp + 0x84]
mov rcx, qword [rsp + 0x180]
call fcn.14032e0a0
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x28]
and eax, 0x200
test eax, eax
je 0x140317c86
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x80], 0x61
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x40]
and eax, 0x20
test eax, eax
je 0x140317adb
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x64]
and eax, 3
cmp eax, 2
jne 0x140317adb
movzx eax, word [rsp + 0x1a8]
and eax, 0x20
test eax, eax
je 0x140317adb
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 4]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x80], 0
jmp 0x140317bc7
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x45]
test eax, eax
je 0x140317b6f
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xe8], rax
mov eax, dword [rsp + 0x1b0]
mov dword [rsp + 0x58], eax
cmp qword [rsp + 0xe8], 0
je 0x140317b4c
mov rax, qword [rsp + 0xf0]
cmp qword [rsp + 0xe8], rax
je 0x140317b4c
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xe8], rax
jmp 0x140317b0f
mov dword [rsp + 0x80], 0x62
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x40]
mov edx, dword [rsp + 0x58]
mov dword [rcx + rax + 0x2c], edx
jmp 0x140317bc7
cmp dword [rsp + 0x1b0], 0
je 0x140317ba0
movzx eax, word [rsp + 0x1a8]
and eax, 0x20
test eax, eax
je 0x140317ba0
mov eax, dword [rsp + 0x1b0]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x80], 0x60
jmp 0x140317bc7
mov rax, qword [rsp + 0x180]
mov eax, dword [rax + 0x34]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x180]
mov eax, dword [rax + 0x34]
inc eax
mov rcx, qword [rsp + 0x180]
mov dword [rcx + 0x34], eax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 8], ecx
cmp dword [rsp + 0x80], 0
je 0x140317c86
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xf0]
mov r9d, dword [rax + 0x58]
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x98]
call fcn.1402f4c80
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x180]
call fcn.1402f5720
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x28]
and eax, 0xf
test eax, eax
je 0x140317c86
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x28]
and eax, 0x8002
test eax, eax
jne 0x140317c86
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x28]
and eax, 0x80000
test eax, eax
jne 0x140317c86
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x40]
and eax, 1
test eax, eax
jne 0x140317c86
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x47]
cmp eax, 2
je 0x140317c86
mov dx, 2
mov rcx, qword [rsp + 0x98]
call fcn.1402f53e0
cmp dword [rsp + 0x84], 0
jl 0x140317ca4
mov edx, dword [rsp + 0x84]
mov rcx, qword [rsp + 0x180]
call fcn.14031d620
jmp 0x14031778f
mov rcx, qword [rsp + 0x98]
call fcn.1402f6000
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x4c], eax
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x140317cd0
jmp 0x140317e43
mov dword [rsp + 0x48], 0
jmp 0x140317ce4
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jge 0x140317e3c
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x398]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x50]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x100], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x50]
mov eax, dword [rax + 0x28]
and eax, 0x4000
test eax, eax
je 0x140317d8f
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x34]
imul rax, rax, 0x70
mov rcx, qword [rsp + 0x188]
lea rax, [rcx + rax + 8]
mov rcx, qword [rsp + 0x40]
add rcx, 0x68
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0xd8]
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x180]
call fcn.14039a080
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x140317d8f
jmp 0x140317e43
movzx r9d, word [rsp + 0x1a8]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x180]
call fcn.140390bd0
mov dword [rsp + 0x168], eax
mov rcx, qword [rsp + 0x98]
call fcn.1402f6000
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x180]
call fcn.140391070
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x18]
mov dword [rax + 0x34], ecx
mov eax, dword [rsp + 0x100]
and eax, 0x2000
test eax, eax
jne 0x140317e37
movzx eax, word [rsp + 0x1a8]
and eax, 0x20
jmp 0x140317cda
mov rax, qword [rsp + 0x40]
jmp 0x140317e72
cmp qword [rsp + 0x40], 0
je 0x140317e70
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x3c]
mov dword [rax + 0xbc], ecx
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
call fcn.14039b600
xor eax, eax
add rsp, 0x178
ret