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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1011a961
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
xor edi, edi
push ebx
lea esi, [esp + 0x7c]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call fcn.10015480
mov eax, dword [esp + 0x78]
cmp eax, edi
jne 0x10082134
cmp eax, 1
jne 0x10082121
lea edi, [esp + 0x44]
lea ebx, [esp + 0x80]
call fcn.10015190
mov ebx, dword [ebp + 0xc]
jmp 0x1008212c
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x7c], eax
sete al
test al, al
jne 0x100822c2
movzx eax, word [ebx + 2]
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
push eax
call esi
movzx eax, ax
test ax, ax
je 0x100822c2
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x2e0]
cmp byte [ecx + 0x1e2], 0
mov dword [esp + 0x18], ecx
jne 0x10082202
mov eax, dword [eax + 0xa0]
test byte [eax + 0x158], 4
je 0x10082202
lea esi, [ecx + 0x368]
mov dword [esp + 0x18], esi
call fcn.10083740
test al, al
je 0x100822c2
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [edi + 0x14]
call fcn.100cc330
mov edi, eax
push ebx
lea esi, [esp + 0x7c]
mov dword [esp + 0xa4], 0
call fcn.10015480
mov ecx, esi
mov edx, edi
lea eax, [esp + 0x3c]
call fcn.1007fe90
mov byte [esp + 0xa0], 1
mov ecx, dword [esp + 0x18]
push eax
call fcn.1000dc40
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0xa4], 0
call fcn.1000c300
lea eax, [esp + 0x1c]
mov dword [esp + 0xa0], 0xffffffff
call fcn.100d2230
jmp 0x100822c2
movzx eax, word [ebx + 2]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx eax, ax
movzx eax, ax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
add edx, 0x9f0
call fcn.1005b690
test al, 1
je 0x100822dc
mov esi, dword [esp + 0x18]
add esi, 0x368
mov dword [esp + 0x18], esi
call fcn.10083740
test al, al
je 0x100822b2
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edi + 0x14]
call fcn.100cc330
mov dword [esp + 0x1c], eax
push ebx
lea esi, [esp + 0x7c]
mov dword [esp + 0xa4], 2
call fcn.10015480
mov edx, dword [esp + 0x1c]
mov ecx, esi
lea eax, [esp + 0x3c]
call fcn.1007fe90
mov byte [esp + 0xa0], 3
mov ecx, dword [esp + 0x18]
push eax
call fcn.1000dc40
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0xa4], 2
call fcn.1000c300
lea eax, [esp + 0x24]
mov dword [esp + 0xa0], 0xffffffff
call fcn.100d2230
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0x14]
push 2
push eax
push ebx
push ecx
call fcn.100d0dc0
xor eax, eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x28d], 0
je 0x10082395
movzx eax, word [ebx + 2]
push eax
call esi
movzx eax, ax
cmp ax, 0x400
jae 0x10082395
mov esi, dword [esp + 0x18]
add esi, 0x368
mov dword [esp + 0x18], esi
call fcn.10083740
test al, al
je 0x10082385
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x24]
push eax
call fcn.100cc330
mov dword [esp + 0x1c], eax
push ebx
lea esi, [esp + 0x7c]
mov dword [esp + 0xa4], 4
call fcn.10015480
mov edx, dword [esp + 0x1c]
mov ecx, esi
lea eax, [esp + 0x3c]
call fcn.1007fe90
mov byte [esp + 0xa0], 5
mov ecx, dword [esp + 0x18]
push eax
call fcn.1000dc40
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0xa4], 4
call fcn.1000c300
lea eax, [esp + 0x24]
mov dword [esp + 0xa0], 0xffffffff
call fcn.100d2230
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 0x14]
push 2
push edx
push ebx
push eax
jmp 0x100822bd
mov ecx, dword [edi + 0x14]
test byte [ecx + 0x51d], 0x40
je 0x1008245e
push ebx
lea esi, [esp + 0x7c]
call fcn.10015480
mov esi, dword [esp + 0x18]
add esi, 0x9d8
lea ecx, [esp + 0x78]
call fcn.1005b520
test al, 1
je 0x1008245e
mov esi, dword [esp + 0x18]
add esi, 0x368
mov dword [esp + 0x18], esi
call fcn.10083740
test al, al
je 0x1008244e
mov ecx, dword [edi + 0x14]
lea edx, [esp + 0x24]
push edx
call fcn.100cc330
mov dword [esp + 0x1c], eax
push ebx
lea esi, [esp + 0x7c]
mov dword [esp + 0xa4], 6
call fcn.10015480
mov edx, dword [esp + 0x1c]
mov ecx, esi
lea eax, [esp + 0x3c]
call fcn.1007fe90
mov byte [esp + 0xa0], 7
mov ecx, dword [esp + 0x18]
push eax
call fcn.1000dc40
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0xa4], 6
call fcn.1000c300
lea eax, [esp + 0x24]
mov dword [esp + 0xa0], 0xffffffff
call fcn.100d2230
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0x14]
push 2
push ecx
push ebx
push edx
jmp 0x100822bd
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x2e0]
cmp byte [ecx + 0xa4], 0
push ebx
lea esi, [esp + 0x7c]
je 0x10082502
call fcn.10015480
mov edx, esi
push edx
lea ebx, [esp + 0x40]
call fcn.1007fc70
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push ebx
sub esp, 0xc
mov eax, esp
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x54]
mov dword [eax], 0
mov dword [esp + 0x2c], esp
sub esp, 0xc
mov eax, esp
lea esi, [esp + 0x4c]
mov dword [esp + 0x38], esp
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
call fcn.10083780
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
add esp, 0x1c
lea esi, [esp + 0x48]
lea edi, [esp + 0x24]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.100222f0
test al, al
je 0x100825a4
jmp 0x10082715
mov byte [esp + 0x20], 0
call fcn.10015480
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
push ecx
sub esp, 0xc
mov edi, esp
mov dword [esp + 0x2c], esp
call fcn.100222a0
sub esp, 0xc
mov esi, esp
mov dword [esp + 0x38], esp
call fcn.10022270
lea ecx, [esp + 0x94]
lea esi, [esp + 0x4c]
call fcn.100837e0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 8]
add esp, 0x1c
lea edi, [esp + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
call fcn.100222a0
mov esi, eax
lea edi, [esp + 0x24]
call fcn.100222f0
test al, al
je 0x100825a1
mov eax, dword [ebp + 0xc]
push eax
lea esi, [esp + 0x7c]
call fcn.10015480
mov eax, edi
call fcn.1010a780
mov ecx, eax
mov ecx, dword [ecx]
lea eax, [esp + 0x3c]
call fcn.1001ccf0
mov ecx, esi
mov edx, eax
call fcn.10014e70
test al, al
jne 0x10082712
mov ebx, dword [ebp + 0xc]
push ebx
lea esi, [esp + 0x7c]
call fcn.10015480
cmp dword [esp + 0x78], 1
sete al
test al, al
mov byte [esp + 0x17], al
je 0x100825d7
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0x2e0]
lea ecx, [eax + 0x2cc]
call fcn.10082f90
jmp 0x100825f1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov eax, dword [eax + 0x2e0]
lea ecx, [eax + 0x2b0]
call fcn.10082f90
mov edi, dword [ebp + 8]
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
je 0x100822c2
cmp byte [esp + 0x17], 0
je 0x1008263e
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0x2e0]
mov ecx, 0x1f4
mov dword [eax + 0x2e0], ecx
mov dword [eax + 0x2dc], ecx
mov dword [esp + 0x18], esi
mov ecx, dword [ebp + 0x10]
push ebx
mov dl, 1
mov edi, esi
mov dword [esp + 0xa4], 8
call fcn.1007fde0
jmp 0x10082674
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x2e0]
mov ecx, 0x1f4
mov dword [eax + 0x2c4], ecx
mov dword [eax + 0x2c0], ecx
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x10]
push ebx
mov cl, 1
mov edi, esi
mov dword [esp + 0xa4], 9
call fcn.1007fce0
movsx eax, byte [ebp + 0x14]
mov edi, dword [ebp + 8]
push eax
mov dword [esp + 0xa4], 0xffffffff
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
push esi
mov eax, edi
call fcn.10081c20
test al, al
jne 0x100826e8
cmp byte [esp + 0x17], al
mov edx, esi
je 0x100826d0
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x2e0]
add eax, 0x2cc
call fcn.10082fb0
jmp 0x100822c2
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0x2e0]
add eax, 0x2b0
call fcn.10082fb0
jmp 0x100822c2
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 0x14]
push 1
push edx
push ebx
push eax
call fcn.100d0dc0
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x24]
call fcn.1010a780
movsx ecx, byte [ebp + 0x14]
mov esi, dword [eax]
mov edi, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push ecx
mov eax, esi
call fcn.10081de0
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0x14]
push 0
push ebx
push edx
push eax
call fcn.100d0dc0
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10