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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x38]
mov dword [rsp], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x3c]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x58]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 2]
mov ecx, 1
mov dword [rsp + 0x78], ecx
movzx ecx, al
mov eax, dword [rsp + 0x78]
shl eax, cl
dec eax
mov rcx, qword [rsp + 0xb0]
mov ecx, dword [rcx + 0x40]
and ecx, eax
mov eax, ecx
shl eax, 4
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2 - 0x200]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004b753
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004b71f
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004bb33
mov eax, dword [rsp + 8]
mov dword [rsp], eax
mov rax, qword [rsp + 0x48]
add rax, 0x280
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x44], 0
jne 0x18004b7a7
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x40], 0
je 0x18004b879
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x28], 0
jne 0x18004b7cc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x88], rax
jmp 0x18004b7e0
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 1]
mov ecx, 1
mov dword [rsp + 0x7c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x7c]
shl eax, cl
dec eax
mov rcx, qword [rsp + 0xb0]
mov ecx, dword [rcx + 0x40]
and ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb0]
movzx ecx, byte [rcx]
shl eax, cl
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rsp + 0x88]
movzx ecx, byte [rcx + rdx - 1]
mov dword [rsp + 0x80], ecx
mov rdx, qword [rsp + 0xb0]
movzx edx, byte [rdx]
mov r8d, 8
sub r8d, edx
mov edx, r8d
movzx ecx, dl
mov edx, dword [rsp + 0x80]
sar edx, cl
mov ecx, edx
add eax, ecx
imul eax, eax, 0x300
mov eax, eax
mov rcx, qword [rsp + 0x18]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x18], rax
cmp dword [rsp + 0x20], 7
jae 0x18004b963
mov dword [rsp + 0x28], 1
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x18]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004b8f0
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004b8bc
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004b922
mov eax, dword [rsp + 8]
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x18004b950
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x28]
lea eax, [rax + rcx + 1]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x100
jb 0x18004b88c
jmp 0x18004bb26
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax + 0x48]
mov rcx, qword [rsp + 0xb0]
cmp qword [rcx + 0x28], rax
jae 0x18004b99c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rax
jmp 0x18004b9a8
mov qword [rsp + 0x90], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax + 0x48]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x28]
sub rcx, rax
mov rax, rcx
add rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x18]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x40], 0x100
mov dword [rsp + 0x2c], 1
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x40]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
add eax, dword [rsp + 0x2c]
mov eax, eax
mov rcx, qword [rsp + 0x18]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
movzx eax, word [rax]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004baa8
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004ba74
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004baea
mov eax, dword [rsp + 8]
mov dword [rsp], eax
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x40]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x18004bb18
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x2c]
lea eax, [rax + rcx + 1]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x100
jb 0x18004b9fb
mov dword [rsp + 0x64], 1
jmp 0x18004c55b
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2 + 0x20]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004bbc3
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bb8f
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004bc08
mov eax, dword [rsp + 8]
mov dword [rsp], eax
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x48]
sub rax, 0x600
mov qword [rsp + 0x18], rax
mov dword [rsp + 0x64], 2
jmp 0x18004bf82
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov dword [rsp + 0x64], 3
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2 + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004bca0
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bc6c
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004bde5
mov eax, dword [rsp + 8]
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2 - 0xc00]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004bd43
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bd0f
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004bdc2
mov eax, dword [rsp + 8]
mov dword [rsp], eax
cmp dword [rsp], 0x1000000
jae 0x18004bdb6
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bd82
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, 3
jmp 0x18004c5af
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
jmp 0x18004bf6a
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2 + 0x50]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004be75
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004be41
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004be9a
mov eax, dword [rsp + 8]
mov dword [rsp], eax
jmp 0x18004bf6a
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2 + 0x68]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004bf2a
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bef6
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004bf4c
mov eax, dword [rsp + 8]
mov dword [rsp], eax
jmp 0x18004bf6a
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov dword [rsp + 0x20], ntohl
mov rax, qword [rsp + 0x48]
sub rax, 0xa00
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004bfeb
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bfb7
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004c032
mov eax, dword [rsp + 8]
mov dword [rsp], eax
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x18]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x5c], 8
jmp 0x18004c140
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x18]
add rax, 0x10
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004c0bd
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c089
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004c102
mov eax, dword [rsp + 8]
mov dword [rsp], eax
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x18]
lea rax, [rcx + rax*2 + 0x10]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 8
mov dword [rsp + 0x5c], 8
jmp 0x18004c140
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x18]
add rax, 0x200
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], reloc.WS2_32.dll_recv
mov dword [rsp + 0x5c], 0x100
mov dword [rsp + 0x10], 1
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x68]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004c1ac
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c178
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004c1de
mov eax, dword [rsp + 8]
mov dword [rsp], eax
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp + 0x10]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
jmp 0x18004c20c
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp + 0x10]
lea eax, [rax + rcx + 1]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x10], eax
jb 0x18004c148
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x10]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x10]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
cmp dword [rsp + 0x20], 4
jae 0x18004c55b
cmp dword [rsp + 0x10], 3
jae 0x18004c256
mov eax, dword [rsp + 0x10]
mov dword [rsp + 0x74], eax
jmp 0x18004c25e
mov dword [rsp + 0x74], 3
mov eax, dword [rsp + 0x74]
shl eax, 6
mov eax, eax
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2 + 0x80]
mov qword [rsp + 0x18], rax
mov dword [rsp + 0x14], 1
mov eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x18]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004c2e5
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c2b1
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004c317
mov eax, dword [rsp + 8]
mov dword [rsp], eax
mov eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 0x14]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x14], eax
jmp 0x18004c345
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 0x14]
lea eax, [rax + rcx + 1]
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 0x40
jb 0x18004c281
mov eax, dword [rsp + 0x14]
sub eax, 0x40
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 4
jb 0x18004c55b
mov eax, dword [rsp + 0x14]
shr eax, 1
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x14], 0xe
jae 0x18004c3a2
mov eax, dword [rsp + 0x14]
and eax, 1
or eax, 2
mov ecx, dword [rsp + 0x24]
shl eax, cl
mov eax, eax
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2 - 0xd00]
mov qword [rsp + 0x18], rax
jmp 0x18004c452
mov eax, dword [rsp + 0x24]
sub eax, 4
mov dword [rsp + 0x24], eax
cmp dword [rsp], 0x1000000
jae 0x18004c400
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c3cc
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 1
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
shr eax, 0x1f
dec eax
mov ecx, dword [rsp]
and ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x18004c3ad
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x18], rax
mov dword [rsp + 0x24], 4
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x18]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0xc], eax
cmp dword [rsp], 0x1000000
jae 0x18004c4c6
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c492
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp]
shr eax, 0xb
imul eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
jae 0x18004c508
mov eax, dword [rsp + 8]
mov dword [rsp], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x18004c546
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x18004c462
cmp dword [rsp], 0x1000000
jae 0x18004c5ab
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c577
xor eax, eax
jmp 0x18004c5af
mov eax, dword [rsp]
shl eax, 8
mov dword [rsp], eax
mov eax, dword [rsp + 4]
shl eax, 8
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x64]
add rsp, 0xa8
ret