Function at 0x100af620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10186376
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0xd8]
xor ebx, ebx
cmp word [esi], bx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
lea ebp, [ebx + 0xf]
je 0x100af7c7
mov dword [esp + 0x14], ebx
push ebx
push 0x1019777d
lea ecx, [esp + 0xb4]
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
call fcn.10001b80
push ebx
push 0x1019777d
lea ecx, [esp + 0x28]
mov dword [esp + 0xd8], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.10001b80
push ebx
push 0x1019777d
lea ecx, [esp + 0x60]
mov byte [esp + 0xd8], 1
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.10001b80
movzx eax, word [esi]
mov ecx, dword [edi + 0x4ca0]
push eax
push ebx
push ebx
push ecx
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
push ebx
push 0xea60
push 0xa
mov byte [esp + 0xfc], 2
call fcn.1002aa60
add esp, 0x1c
mov ecx, eax
call fcn.10029040
cmp dword [esp + 0x70], 0x10
mov dword [edi + 0x70], eax
jb 0x100af732
mov edx, dword [esp + 0x5c]
push edx
call fcn.10157f3b
add esp, 4
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x100af752
mov eax, dword [esp + 0x24]
push eax
call fcn.10157f3b
add esp, 4
cmp dword [esp + 0xc4], 0x10
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0xd0], 0xffffffff
jb 0x100af783
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.10157f3b
add esp, 4
cmp dword [edi + 0x70], ebx
jne 0x100af7b6
movzx edx, word [esi]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
add ax, 1
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi], ax
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0x14
mov dword [esp + 0x14], eax
jl 0x100af670
jmp 0x100af7c7
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov dword [esp + 0x1c], ecx
mov esi, dword [esp + 0xdc]
cmp word [esi], bx
je 0x100af9b1
mov dword [esp + 0x14], ebx
jmp 0x100af7e0
push ebx
push 0x1019777d
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.10001b80
push ebx
push 0x1019777d
lea ecx, [esp + 0x44]
mov dword [esp + 0xd8], 3
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.10001b80
push ebx
push 0x1019777d
lea ecx, [esp + 0x98]
mov byte [esp + 0xd8], 4
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
call fcn.10001b80
movzx edx, word [esi]
mov eax, dword [edi + 0x4ca0]
push edx
push ebx
push 2
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x50]
push edx
push ebx
lea eax, [esp + 0xac]
push eax
push ebx
push 0xea60
push 0xa
mov byte [esp + 0xfc], 5
call fcn.1002aa60
add esp, 0x1c
mov ecx, eax
call fcn.10029040
cmp dword [esp + 0xa8], 0x10
mov dword [edi + 0x74], eax
jb 0x100af8b9
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10157f3b
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
jb 0x100af8e2
mov edx, dword [esp + 0x40]
push edx
call fcn.10157f3b
add esp, 4
cmp dword [esp + 0x8c], 0x10
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0xd0], 0xffffffff
jb 0x100af910
mov eax, dword [esp + 0x78]
push eax
call fcn.10157f3b
add esp, 4
cmp dword [edi + 0x74], ebx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
jne 0x100af9a0
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x100af943
push 0x1bb
call dword [sym.imp.WS2_32.dll_ntohs]
cmp word [esi], ax
jne 0x100af972
push 0x50
jmp 0x100af981
cmp eax, 1
jne 0x100af959
push 0x50
call dword [sym.imp.WS2_32.dll_ntohs]
cmp word [esi], ax
jne 0x100af972
push 0x35
jmp 0x100af981
cmp eax, 2
jne 0x100af972
push 0x35
call dword [sym.imp.WS2_32.dll_ntohs]
cmp word [esi], ax
jne 0x100af972
push 0x2134
jmp 0x100af981
movzx ecx, word [esi]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
add ax, 1
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi], ax
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0x14
mov dword [esp + 0x14], eax
jl 0x100af7e0
jmp 0x100af9b1
movzx edx, word [esi]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x1c]
push ebx
push ecx
push edx
push 0x5c
mov ecx, edi
call fcn.100ac900
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 8