Function at 0x18004b570
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 0x18004b693
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004b65f
xor eax, eax
jmp 0x18004c4ef
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 0x18004ba73
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 0x18004b6e7
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x40], 0
je 0x18004b7b9
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x28], 0
jne 0x18004b70c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x88], rax
jmp 0x18004b720
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 0x18004b8a3
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 0x18004b830
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004b7fc
xor eax, eax
jmp 0x18004c4ef
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 0x18004b862
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 0x18004b890
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 0x18004b7cc
jmp 0x18004ba66
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 0x18004b8dc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rax
jmp 0x18004b8e8
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 0x18004b9e8
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004b9b4
xor eax, eax
jmp 0x18004c4ef
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 0x18004ba2a
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 0x18004ba58
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 0x18004b93b
mov dword [rsp + 0x64], 1
jmp 0x18004c49b
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 0x18004bb03
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bacf
xor eax, eax
jmp 0x18004c4ef
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 0x18004bb48
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 0x18004bec2
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 0x18004bbe0
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bbac
xor eax, eax
jmp 0x18004c4ef
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 0x18004bd25
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 0x18004bc83
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bc4f
xor eax, eax
jmp 0x18004c4ef
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 0x18004bd02
mov eax, dword [rsp + 8]
mov dword [rsp], eax
cmp dword [rsp], 0x1000000
jae 0x18004bcf6
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bcc2
xor eax, eax
jmp 0x18004c4ef
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 0x18004c4ef
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 0x18004beaa
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 0x18004bdb5
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bd81
xor eax, eax
jmp 0x18004c4ef
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 0x18004bdda
mov eax, dword [rsp + 8]
mov dword [rsp], eax
jmp 0x18004beaa
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 0x18004be6a
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004be36
xor eax, eax
jmp 0x18004c4ef
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 0x18004be8c
mov eax, dword [rsp + 8]
mov dword [rsp], eax
jmp 0x18004beaa
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 0x18004bf2b
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bef7
xor eax, eax
jmp 0x18004c4ef
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 0x18004bf72
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 0x18004c080
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 0x18004bffd
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004bfc9
xor eax, eax
jmp 0x18004c4ef
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 0x18004c042
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 0x18004c080
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 0x18004c0ec
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c0b8
xor eax, eax
jmp 0x18004c4ef
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 0x18004c11e
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 0x18004c14c
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 0x18004c088
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 0x18004c49b
cmp dword [rsp + 0x10], 3
jae 0x18004c196
mov eax, dword [rsp + 0x10]
mov dword [rsp + 0x74], eax
jmp 0x18004c19e
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 0x18004c225
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c1f1
xor eax, eax
jmp 0x18004c4ef
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 0x18004c257
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 0x18004c285
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 0x18004c1c1
mov eax, dword [rsp + 0x14]
sub eax, 0x40
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 4
jb 0x18004c49b
mov eax, dword [rsp + 0x14]
shr eax, 1
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x14], 0xe
jae 0x18004c2e2
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 0x18004c392
mov eax, dword [rsp + 0x24]
sub eax, 4
mov dword [rsp + 0x24], eax
cmp dword [rsp], 0x1000000
jae 0x18004c340
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c30c
xor eax, eax
jmp 0x18004c4ef
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 0x18004c2ed
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 0x18004c406
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c3d2
xor eax, eax
jmp 0x18004c4ef
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 0x18004c448
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 0x18004c486
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 0x18004c3a2
cmp dword [rsp], 0x1000000
jae 0x18004c4eb
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jb 0x18004c4b7
xor eax, eax
jmp 0x18004c4ef
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