Function at 0x18004a3e0
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
push rsi
push rdi
sub rsp, 0x2e8
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x330], 0
jbe 0x18004a43e
mov rax, qword [rsp + 0x328]
movsx eax, byte [rax]
cmp eax, 0x2b
je 0x18004a430
mov rax, qword [rsp + 0x328]
movsx eax, byte [rax]
cmp eax, 0x2d
jne 0x18004a43e
mov qword [rsp + 0xb0], 1
jmp 0x18004a44a
mov qword [rsp + 0xb0], 0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x318]
call fcn.1800223e0
and eax, 0xe00
cmp eax, 0x800
jne 0x18004a4e4
mov rax, qword [rsp + 0x28]
add rax, 2
cmp rax, qword [rsp + 0x330]
ja 0x18004a4e4
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x328]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
cmp eax, 0x30
jne 0x18004a4e4
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x328]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax + 1]
cmp eax, 0x78
je 0x18004a4d6
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x328]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax + 1]
cmp eax, 0x58
jne 0x18004a4e4
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x1f8]
mov rcx, qword [rsp + 0x318]
call fcn.1800223f0
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call fcn.180024300
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x1f8]
call fcn.180021e70
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x100], rax
movzx edx, byte [rsp + 0x38]
mov rcx, qword [rsp + 0x100]
call fcn.180006cf0
nop
mov r8, qword [rsp + 0x330]
xor edx, edx
lea rcx, [rsp + 0xd8]
call fcn.18004efa0
nop
lea rax, [rsp + 0xd8]
mov rcx, rax
call fcn.180005580
xor ecx, ecx
imul rcx, rcx, 1
add rax, rcx
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x328]
add rcx, rax
mov rax, rcx
mov r9, qword [rsp + 0x108]
mov r8, rax
mov rdx, qword [rsp + 0x328]
mov rcx, qword [rsp + 0x110]
call fcn.18003c390
lea rdx, [rsp + 0x208]
mov rcx, qword [rsp + 0x318]
call fcn.1800223f0
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rcx, qword [rsp + 0x120]
call fcn.18004f170
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x208]
call fcn.180021e70
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x128], rax
lea rdx, [rsp + 0x2c0]
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x128]
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x2c0]
mov rcx, rax
call fcn.180005580
xor ecx, ecx
imul rcx, rcx, 1
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x7f
je 0x18004a741
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
jle 0x18004a741
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x50]
call qword [rax + 0x20]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x7f
je 0x18004a741
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
jle 0x18004a741
mov rax, qword [rsp + 0x30]
movsx rax, byte [rax]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x330]
sub rdx, rcx
mov rcx, rdx
cmp rax, rcx
jae 0x18004a741
mov rax, qword [rsp + 0x30]
movsx rax, byte [rax]
mov rcx, qword [rsp + 0x330]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x330], rax
movzx r9d, byte [rsp + 0x20]
mov r8d, 1
mov rdx, qword [rsp + 0x330]
lea rcx, [rsp + 0xd8]
call fcn.18004d5f0
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movsx eax, byte [rcx + rax]
test eax, eax
jle 0x18004a73c
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x18004a697
lea rcx, [rsp + 0xd8]
call fcn.180005570
mov qword [rsp + 0x330], rax
mov rcx, qword [rsp + 0x318]
call fcn.18003c3a0
test rax, rax
jle 0x18004a77f
mov rcx, qword [rsp + 0x318]
call fcn.18003c3a0
cmp rax, qword [rsp + 0x330]
ja 0x18004a78a
mov qword [rsp + 0x40], 0
jmp 0x18004a7a4
mov rcx, qword [rsp + 0x318]
call fcn.18003c3a0
sub rax, qword [rsp + 0x330]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x318]
call fcn.1800223e0
and eax, 0x1c0
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0x40
je 0x18004a984
cmp dword [rsp + 0x3c], 0x100
je 0x18004a984
lea rax, [rsp + 0x170]
mov rdi, rax
mov rsi, qword [rsp + 0x310]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
jmp 0x18004a806
mov rax, qword [rsp + 0x58]
dec rax
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x18004a835
lea rax, [rsp + 0x170]
mov qword [rsp + 0x130], rax
movzx edx, byte [rsp + 0x320]
mov rcx, qword [rsp + 0x130]
call fcn.18004d3b0
jmp 0x18004a7f9
lea rax, [rsp + 0x218]
lea rcx, [rsp + 0x170]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x218]
mov rdi, qword [rsp + 0x310]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xd8]
mov rcx, rax
call fcn.180005580
xor ecx, ecx
imul rcx, rcx, 1
add rax, rcx
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x228]
mov rdi, rax
mov rsi, qword [rsp + 0x310]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x180]
lea rcx, [rsp + 0x228]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
jmp 0x18004a910
mov rax, qword [rsp + 0x60]
dec rax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x60], 0
jbe 0x18004a948
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
mov byte [rsp + 0x21], al
lea rax, [rsp + 0x180]
mov qword [rsp + 0x138], rax
movzx edx, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x138]
call fcn.18004d3b0
jmp 0x18004a8f6
lea rax, [rsp + 0x238]
lea rcx, [rsp + 0x180]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x238]
mov rdi, qword [rsp + 0x310]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
jmp 0x18004ac71
cmp dword [rsp + 0x3c], 0x100
jne 0x18004ab4f
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xd8]
mov rcx, rax
call fcn.180005580
xor ecx, ecx
imul rcx, rcx, 1
add rax, rcx
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x248]
mov rdi, rax
mov rsi, qword [rsp + 0x310]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x190]
lea rcx, [rsp + 0x248]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x78], rax
jmp 0x18004aa2d
mov rax, qword [rsp + 0x70]
dec rax
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x78]
inc rax
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x70], 0
jbe 0x18004aa65
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
mov byte [rsp + 0x22], al
lea rax, [rsp + 0x190]
mov qword [rsp + 0x140], rax
movzx edx, byte [rsp + 0x22]
mov rcx, qword [rsp + 0x140]
call fcn.18004d3b0
jmp 0x18004aa13
lea rax, [rsp + 0x258]
lea rcx, [rsp + 0x190]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x258]
mov rdi, qword [rsp + 0x310]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1a0]
mov rdi, rax
mov rsi, qword [rsp + 0x310]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
jmp 0x18004aad8
mov rax, qword [rsp + 0x80]
dec rax
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jbe 0x18004ab0a
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x148], rax
movzx edx, byte [rsp + 0x320]
mov rcx, qword [rsp + 0x148]
call fcn.18004d3b0
jmp 0x18004aac5
lea rax, [rsp + 0x268]
lea rcx, [rsp + 0x1a0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x268]
mov rdi, qword [rsp + 0x310]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x40], 0
jmp 0x18004ac71
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0xd8]
mov rcx, rax
call fcn.180005580
xor ecx, ecx
imul rcx, rcx, 1
add rax, rcx
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x278]
mov rdi, rax
mov rsi, qword [rsp + 0x310]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1b0]
lea rcx, [rsp + 0x278]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x90], rax
jmp 0x18004abfc
mov rax, qword [rsp + 0x88]
dec rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x90]
inc rax
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x88], 0
jbe 0x18004ac3a
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax]
mov byte [rsp + 0x23], al
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x150], rax
movzx edx, byte [rsp + 0x23]
mov rcx, qword [rsp + 0x150]
call fcn.18004d3b0
jmp 0x18004abd6
lea rax, [rsp + 0x288]
lea rcx, [rsp + 0x1b0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x288]
mov rdi, qword [rsp + 0x310]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xd8]
mov rcx, rax
call fcn.180005580
add rax, qword [rsp + 0x28]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x298]
mov rdi, rax
mov rsi, qword [rsp + 0x310]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1c0]
lea rcx, [rsp + 0x298]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x330]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xa0], rax
jmp 0x18004ad28
mov rax, qword [rsp + 0x98]
dec rax
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xa0]
inc rax
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0x98], 0
jbe 0x18004ad66
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax]
mov byte [rsp + 0x24], al
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x158], rax
movzx edx, byte [rsp + 0x24]
mov rcx, qword [rsp + 0x158]
call fcn.18004d3b0
jmp 0x18004ad02
lea rax, [rsp + 0x2a8]
lea rcx, [rsp + 0x1c0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2a8]
mov rdi, qword [rsp + 0x310]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
xor edx, edx
mov rcx, qword [rsp + 0x318]
call fcn.18003c3b0
lea rax, [rsp + 0x1d0]
mov rdi, rax
mov rsi, qword [rsp + 0x310]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa8], rax
jmp 0x18004ade8
mov rax, qword [rsp + 0xa8]
dec rax
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jbe 0x18004ae1a
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x160], rax
movzx edx, byte [rsp + 0x320]
mov rcx, qword [rsp + 0x160]
call fcn.18004d3b0
jmp 0x18004add5
lea rax, [rsp + 0x1d0]
mov rdi, qword [rsp + 0x308]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x2c0]
call fcn.1800055d0
nop
lea rcx, [rsp + 0xd8]
call fcn.1800055d0
mov rax, qword [rsp + 0x308]
add rsp, 0x2e8
pop rdi
pop rsi
ret