Function at 0x18004a770
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 0x18004aa57
jmp 0x18004a7f2
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 0x18004a85a
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 5
jae 0x18004a85a
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 0x18004a7cc
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 0
je 0x18004a88c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax + 0x68]
test eax, eax
je 0x18004a88c
mov eax, 1
jmp 0x18004aef1
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 5
jae 0x18004a8af
mov rax, qword [rsp + 0xa8]
mov dword [rax], 3
xor eax, eax
jmp 0x18004aef1
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 0x18004aa48
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 0x18004a9b4
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x40], rax
jae 0x18004a9d5
mov eax, 0x400
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x40]
mov word [rcx + rdx*2], ax
jmp 0x18004a9a7
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.18004b2b0
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x5c], 0x112
je 0x18004aecc
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
cmp qword [rax + 0x28], rcx
jb 0x18004ab1d
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x5c], 0
jne 0x18004aad0
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x3c], 0
jne 0x18004aad0
mov rax, qword [rsp + 0xa8]
mov dword [rax], 4
xor eax, eax
jmp 0x18004aef1
cmp dword [rsp + 0xa0], 0
jne 0x18004aaef
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
xor eax, eax
jmp 0x18004aef1
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x5c], 0
je 0x18004ab15
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
mov eax, 1
jmp 0x18004aef1
mov dword [rsp + 0x30], 1
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 0
jne 0x18004acbb
cmp qword [rsp + 0x28], 0x14
jb 0x18004ab42
cmp dword [rsp + 0x30], 0
je 0x18004abfc
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.18004b570
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x18004abc7
mov rax, qword [rsp + 0x80]
add rax, 0x68
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.18008f590
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 0x18004aef1
cmp dword [rsp + 0x30], 0
je 0x18004abed
cmp dword [rsp + 0x34], 2
je 0x18004abed
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
mov eax, 1
jmp 0x18004aef1
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
jmp 0x18004ac13
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.18004b440
test eax, eax
je 0x18004ac4f
mov eax, 1
jmp 0x18004aef1
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 0x18004aec7
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 0x18004ad1b
mov eax, dword [rsp + 0x24]
cmp rax, qword [rsp + 0x28]
jae 0x18004ad1b
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 0x18004acd2
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x64], ecx
cmp dword [rsp + 0x20], 0x14
jb 0x18004ad3c
cmp dword [rsp + 0x30], 0
je 0x18004adbf
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.18004b570
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x18004ad99
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 0x18004aef1
cmp dword [rsp + 0x30], 0
je 0x18004adbf
cmp dword [rsp + 0x38], 2
je 0x18004adbf
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
mov eax, 1
jmp 0x18004aef1
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.18004b440
test eax, eax
je 0x18004ae06
mov eax, 1
jmp 0x18004aef1
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 0x18004ae3c
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x18004aef1
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 0x18004ae60
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x18004aef1
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 0x18004aa6c
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x3c], 0
je 0x18004aee1
mov eax, 1
jmp 0x18004aef1
mov rax, qword [rsp + 0xa8]
mov dword [rax], 1
xor eax, eax
add rsp, 0x78
ret