Function at 0x18004b580
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 0x18004b6a3
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004b66f
xor eax, eax
jmp 0x18004c4ff
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 0x18004ba83
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 0x18004b6f7
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x40], 0
je 0x18004b7c9
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x28], 0
jne 0x18004b71c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x88], rax
jmp 0x18004b730
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 0x18004b8b3
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 0x18004b840
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004b80c
xor eax, eax
jmp 0x18004c4ff
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 0x18004b872
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 0x18004b8a0
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 0x18004b7dc
jmp 0x18004ba76
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 0x18004b8ec
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rax
jmp 0x18004b8f8
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 0x18004b9f8
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004b9c4
xor eax, eax
jmp 0x18004c4ff
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 0x18004ba3a
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 0x18004ba68
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 0x18004b94b
mov dword [rsp + 0x64], 1
jmp 0x18004c4ab
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 0x18004bb13
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004badf
xor eax, eax
jmp 0x18004c4ff
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 0x18004bb58
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 0x18004bed2
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 0x18004bbf0
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bbbc
xor eax, eax
jmp 0x18004c4ff
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 0x18004bd35
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 0x18004bc93
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bc5f
xor eax, eax
jmp 0x18004c4ff
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 0x18004bd12
mov eax, dword [rsp + 8]
mov dword [rsp], eax
cmp dword [rsp], 0x1000000
jae 0x18004bd06
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bcd2
xor eax, eax
jmp 0x18004c4ff
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 0x18004c4ff
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 0x18004beba
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 0x18004bdc5
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bd91
xor eax, eax
jmp 0x18004c4ff
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 0x18004bdea
mov eax, dword [rsp + 8]
mov dword [rsp], eax
jmp 0x18004beba
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 0x18004be7a
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004be46
xor eax, eax
jmp 0x18004c4ff
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 0x18004be9c
mov eax, dword [rsp + 8]
mov dword [rsp], eax
jmp 0x18004beba
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 0x18004bf3b
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bf07
xor eax, eax
jmp 0x18004c4ff
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 0x18004bf82
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 0x18004c090
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 0x18004c00d
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bfd9
xor eax, eax
jmp 0x18004c4ff
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 0x18004c052
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 0x18004c090
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 0x18004c0fc
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c0c8
xor eax, eax
jmp 0x18004c4ff
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 0x18004c12e
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 0x18004c15c
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 0x18004c098
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 0x18004c4ab
cmp dword [rsp + 0x10], 3
jae 0x18004c1a6
mov eax, dword [rsp + 0x10]
mov dword [rsp + 0x74], eax
jmp 0x18004c1ae
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 0x18004c235
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c201
xor eax, eax
jmp 0x18004c4ff
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 0x18004c267
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 0x18004c295
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 0x18004c1d1
mov eax, dword [rsp + 0x14]
sub eax, 0x40
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 4
jb 0x18004c4ab
mov eax, dword [rsp + 0x14]
shr eax, 1
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x14], 0xe
jae 0x18004c2f2
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 0x18004c3a2
mov eax, dword [rsp + 0x24]
sub eax, 4
mov dword [rsp + 0x24], eax
cmp dword [rsp], 0x1000000
jae 0x18004c350
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c31c
xor eax, eax
jmp 0x18004c4ff
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 0x18004c2fd
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 0x18004c416
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c3e2
xor eax, eax
jmp 0x18004c4ff
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 0x18004c458
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 0x18004c496
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 0x18004c3b2
cmp dword [rsp], 0x1000000
jae 0x18004c4fb
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c4c7
xor eax, eax
jmp 0x18004c4ff
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