Function at 0x18004a830
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 0x18004ab17
jmp 0x18004a8b2
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 0x18004a91a
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 5
jae 0x18004a91a
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 0x18004a88c
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 0
je 0x18004a94c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax + 0x68]
test eax, eax
je 0x18004a94c
mov eax, 1
jmp 0x18004afb1
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 5
jae 0x18004a96f
mov rax, qword [rsp + 0xa8]
mov dword [rax], 3
xor eax, eax
jmp 0x18004afb1
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 0x18004ab08
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 0x18004aa74
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x40], rax
jae 0x18004aa95
mov eax, 0x400
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x40]
mov word [rcx + rdx*2], ax
jmp 0x18004aa67
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.18004b370
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x5c], 0x112
je 0x18004af8c
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
cmp qword [rax + 0x28], rcx
jb 0x18004abdd
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x5c], 0
jne 0x18004ab90
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x3c], 0
jne 0x18004ab90
mov rax, qword [rsp + 0xa8]
mov dword [rax], 4
xor eax, eax
jmp 0x18004afb1
cmp dword [rsp + 0xa0], 0
jne 0x18004abaf
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
xor eax, eax
jmp 0x18004afb1
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x5c], 0
je 0x18004abd5
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
mov eax, 1
jmp 0x18004afb1
mov dword [rsp + 0x30], 1
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x64], 0
jne 0x18004ad7b
cmp qword [rsp + 0x28], 0x14
jb 0x18004ac02
cmp dword [rsp + 0x30], 0
je 0x18004acbc
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.18004b630
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x18004ac87
mov rax, qword [rsp + 0x80]
add rax, 0x68
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.18008f650
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 0x18004afb1
cmp dword [rsp + 0x30], 0
je 0x18004acad
cmp dword [rsp + 0x34], 2
je 0x18004acad
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
mov eax, 1
jmp 0x18004afb1
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
jmp 0x18004acd3
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.18004b500
test eax, eax
je 0x18004ad0f
mov eax, 1
jmp 0x18004afb1
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 0x18004af87
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 0x18004addb
mov eax, dword [rsp + 0x24]
cmp rax, qword [rsp + 0x28]
jae 0x18004addb
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 0x18004ad92
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x64], ecx
cmp dword [rsp + 0x20], 0x14
jb 0x18004adfc
cmp dword [rsp + 0x30], 0
je 0x18004ae7f
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.18004b630
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x18004ae59
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 0x18004afb1
cmp dword [rsp + 0x30], 0
je 0x18004ae7f
cmp dword [rsp + 0x38], 2
je 0x18004ae7f
mov rax, qword [rsp + 0xa8]
mov dword [rax], 2
mov eax, 1
jmp 0x18004afb1
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.18004b500
test eax, eax
je 0x18004aec6
mov eax, 1
jmp 0x18004afb1
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 0x18004aefc
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x18004afb1
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 0x18004af20
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x18004afb1
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 0x18004ab2c
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x3c], 0
je 0x18004afa1
mov eax, 1
jmp 0x18004afb1
mov rax, qword [rsp + 0xa8]
mov dword [rax], 1
xor eax, eax
add rsp, 0x78
ret