Function at 0x18004a780
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, 0x78
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rax], 0
mov rax, qword [rsp + 0xa8]
mov dword [rax], 0
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x5c], 0x112
jbe 0x18004aa67
jmp 0x18004a802
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
inc rax
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
dec rax
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jbe 0x18004a86a
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 5
jae 0x18004a86a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x64]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x90]
movzx edx, byte [rdx]
mov byte [rcx + rax + 0x68], dl
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x64]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x64], eax
mov rax, qword [rsp + 0x90]
inc rax
mov qword [rsp + 0x90], rax
jmp 0x18004a7dc
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 0
je 0x18004a89c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax + 0x68]
test eax, eax
je 0x18004a89c
mov eax, 1
jmp 0x18004af01
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 5
jae 0x18004a8bf
mov rax, qword [rsp + 0xa8]
mov dword [rax], 3
xor eax, eax
jmp 0x18004af01
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax + 0x68]
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx + 0x68]
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx + 0x68]
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x80]
movzx ecx, byte [rdx + rcx + 0x68]
or eax, ecx
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x3c], eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x38], 0xffffffff
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x64], 0
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x5c], 0x113
jbe 0x18004aa58
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x80]
movzx ecx, byte [rcx + 1]
add eax, ecx
mov ecx, 0x300
mov dword [rsp + 0x48], ecx
movzx ecx, al
mov eax, dword [rsp + 0x48]
shl eax, cl
add eax, 0x7c0
mov eax, eax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x40], 0
jmp 0x18004a9c4
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x40], rax
jae 0x18004a9e5
mov eax, 0x400
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x40]
mov word [rcx + rdx*2], ax
jmp 0x18004a9b7
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x80]
mov dword [rcx + rax + 0x48], 1
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x80]
mov dword [rcx + rax + 0x48], 1
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x80]
mov dword [rcx + rax + 0x48], 1
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
mov dword [rcx + rax + 0x48], 1
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x58], 0
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x5c], 0
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.18004b2c0
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x5c], 0x112
je 0x18004aedc
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
cmp qword [rax + 0x28], rcx
jb 0x18004ab2d
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x5c], 0
jne 0x18004aae0
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x3c], 0
jne 0x18004aae0
mov rax, qword [rsp + 0xa8]
mov dword [rax], 4
xor eax, eax
jmp 0x18004af01
cmp dword [rsp + 0xa0], 0
jne 0x18004aaff
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
xor eax, eax
jmp 0x18004af01
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x5c], 0
je 0x18004ab25
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
mov eax, 1
jmp 0x18004af01
mov dword [rsp + 0x30], 1
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 0
jne 0x18004accb
cmp qword [rsp + 0x28], 0x14
jb 0x18004ab52
cmp dword [rsp + 0x30], 0
je 0x18004ac0c
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.18004b580
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x18004abd7
mov rax, qword [rsp + 0x80]
add rax, 0x68
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.18008f5a0
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x64], ecx
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
add rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa8]
mov dword [rax], 3
xor eax, eax
jmp 0x18004af01
cmp dword [rsp + 0x30], 0
je 0x18004abfd
cmp dword [rsp + 0x34], 2
je 0x18004abfd
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
mov eax, 1
jmp 0x18004af01
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
jmp 0x18004ac23
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
lea rax, [rax + rcx - 0x14]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 0x30], rcx
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.18004b450
test eax, eax
je 0x18004ac5f
mov eax, 1
jmp 0x18004af01
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x90]
mov rax, qword [rax + 0x30]
sub rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
add rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x18004aed7
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x64]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x20], 0x14
jae 0x18004ad2b
mov eax, dword [rsp + 0x24]
cmp rax, qword [rsp + 0x28]
jae 0x18004ad2b
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x90]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx + 0x68], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x18004ace2
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x64], ecx
cmp dword [rsp + 0x20], 0x14
jb 0x18004ad4c
cmp dword [rsp + 0x30], 0
je 0x18004adcf
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, 0x68
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x80]
call fcn.18004b580
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x18004ada9
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x98]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa8]
mov dword [rax], 3
xor eax, eax
jmp 0x18004af01
cmp dword [rsp + 0x30], 0
je 0x18004adcf
cmp dword [rsp + 0x38], 2
je 0x18004adcf
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
mov eax, 1
jmp 0x18004af01
mov rax, qword [rsp + 0x80]
add rax, 0x68
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x80]
mov r8, qword [rax + 0x30]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.18004b450
test eax, eax
je 0x18004ae16
mov eax, 1
jmp 0x18004af01
mov rax, qword [rsp + 0x80]
add rax, 0x68
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x30]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x20], eax
jae 0x18004ae4c
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x18004af01
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jae 0x18004ae70
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x18004af01
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x98]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x64], 0
jmp 0x18004aa7c
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x3c], 0
je 0x18004aef1
mov eax, 1
jmp 0x18004af01
mov rax, qword [rsp + 0xa8]
mov dword [rax], 1
xor eax, eax
add rsp, 0x78
ret