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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10122e13
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0xa0]
xor edi, edi
cmp dword [eax + 0x94], edi
jle 0x100bee20
call fcn.100cd190
test al, al
jne 0x100bee20
mov al, byte [ebp + 0x4c7]
and al, 7
cmp al, 7
je 0x100bee20
call fcn.100cc9a0
push 0x5c
lea esi, [esp + 0x30]
call fcn.10034120
mov ecx, esi
push ecx
mov ebx, ebp
call fcn.100cb1d0
call fcn.100ce020
mov dword [esp + 0x2c], edi
mov dword [esp + 0x78], edi
mov esi, dword [ebp + 0xa4]
lea ebx, [esp + 0x2c]
call fcn.100b0d20
or esi, 0xffffffff
mov dword [esp + 0x78], esi
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x100be971
test al, 1
jne 0x100be971
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, edi
je 0x100be971
lea edx, [esp + 0x34]
push 2
push edx
mov ecx, edx
push ecx
call eax
add esp, 0xc
cmp dword [ebp + 0x304], edi
jne 0x100be9bf
push 0x78
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov dword [esp + 0x78], 1
je 0x100be99b
push eax
call fcn.1007a460
jmp 0x100be99d
xor eax, eax
mov dword [esp + 0x78], esi
mov esi, dword [ebp + 0x304]
cmp esi, edi
mov dword [ebp + 0x304], eax
je 0x100be9bf
call fcn.100d6a70
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea esi, [ebp + 0x2f4]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x100be9d7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x100be9e5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
push esi
push ebx
push esi
lea edi, [esp + 0x34]
call fcn.100d50a0
movzx ecx, byte [ebp + 0x4ef]
mov esi, dword [ebp + 0xa0]
mov eax, dword [esi + 0x94]
and ecx, 0x1f
mov edi, 1
shl edi, cl
mov ecx, dword [esi + 0x88]
add esp, 0x10
lea eax, [edi + eax - 1]
cdq
idiv edi
mov dword [esp + 0x24], eax
mov eax, edi
cdq
mov edi, eax
mov eax, dword [esi + 0x94]
mov ebx, edx
cdq
push edx
push eax
mov eax, dword [esi + 0x8c]
push eax
push ecx
call fcn.1010e490
add eax, edi
adc edx, ebx
push ebx
sub eax, 1
push edi
sbb edx, 0
push edx
push eax
call fcn.1010e550
mov esi, dword [esi + 0x90]
mov edx, dword [esp + 0x24]
mov edi, dword [ebp + 0x304]
push esi
push eax
push edx
call fcn.1007a510
and byte [ebp + 0x4f0], 0xfd
push ebp
mov ecx, 7
call fcn.100d0c00
lea edi, [ebp + 0x58]
call fcn.10082920
test byte [ebp + 0x50c], 0x40
je 0x100bed18
mov ecx, ebp
call fcn.1001d090
test al, al
jne 0x100bed18
mov edi, accept
mov ecx, ebp
mov dword [esp + 0x24], edi
call fcn.1001d040
test al, al
jne 0x100bed18
mov eax, dword [ebp + 0xa0]
cmp dword [eax + 0x94], 0
jle 0x100beae2
mov eax, dword [eax + 0x90]
mov ecx, dword [ebp + 0x304]
sub eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 0x64]
sub eax, edx
je 0x100bed18
cmp dword [ebp + 0x4c0], edi
je 0x100bed18
mov esi, ebp
call fcn.100d0e90
mov ecx, dword [ebp + 0x2e0]
mov eax, dword [ebp + 0x4c0]
add ecx, 0x9a8
cmp eax, 0xffffffff
mov dword [esp + 0x20], ecx
jne 0x100bebb7
or ebx, eax
mov eax, dword [ecx + 4]
mov edi, dword [eax]
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
lea esp, [esp]
test esi, esi
je 0x100beb38
cmp esi, ecx
je 0x100beb3e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x14]
je 0x100beb94
test esi, esi
jne 0x100beb4e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x100beb59
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 0x20]
mov eax, dword [esi + 0x4c0]
cmp eax, ebx
jle 0x100beb68
mov ebx, eax
cmp eax, 0x7fffffff
jl 0x100beb7d
add eax, 1
mov dword [esi + 0x4c0], eax
call fcn.100d0e90
lea esi, [esp + 0x18]
call fcn.10009610
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
jmp 0x100beb30
lea eax, [ebx + 1]
mov dword [esp + 0x20], eax
cmp eax, 0x7fffffff
lea eax, [esp + 0x24]
jg 0x100bebaa
lea eax, [esp + 0x20]
mov eax, dword [eax]
mov dword [ebp + 0x4c0], eax
jmp 0x100bed08
cmp eax, edi
jle 0x100bec52
mov eax, dword [ecx + 4]
mov edi, dword [eax]
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
test esi, esi
je 0x100bebda
cmp esi, ecx
je 0x100bebe4
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call ebx
jmp 0x100bebea
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x14]
je 0x100bec43
test esi, esi
jne 0x100bebf6
call ebx
cmp edi, dword [esi + 4]
jne 0x100bebfd
call ebx
mov esi, dword [edi + 0x20]
cmp esi, ebp
je 0x100bec2c
mov eax, dword [esi + 0x4c0]
cmp eax, 0x7fffffff
jl 0x100bec2c
cmp eax, dword [ebp + 0x4c0]
jge 0x100bec2c
cmp eax, 0xffffffff
je 0x100bec2c
add eax, 1
mov dword [esi + 0x4c0], eax
call fcn.100d0e90
lea esi, [esp + 0x24]
call fcn.10009610
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
jmp 0x100bebd2
mov dword [ebp + 0x4c0], getsockopt
jmp 0x100bed08
jge 0x100bed08
mov eax, dword [ecx + 4]
mov edi, dword [eax]
mov esi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
test esi, esi
je 0x100bec7b
cmp esi, ecx
je 0x100bec85
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call ebx
jmp 0x100bec8b
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x14]
je 0x100becee
test esi, esi
jne 0x100bec97
call ebx
cmp edi, dword [esi + 4]
jne 0x100bec9e
call ebx
mov esi, dword [edi + 0x20]
mov eax, dword [esi + 0x4c0]
cmp eax, dword [esp + 0x18]
jle 0x100becb1
mov dword [esp + 0x18], eax
cmp esi, ebp
je 0x100becd7
cmp eax, 0x7fffffff
jg 0x100becd7
cmp eax, dword [ebp + 0x4c0]
jle 0x100becd7
cmp eax, 0xffffffff
je 0x100becd7
add eax, 0xffffffff
mov dword [esi + 0x4c0], eax
call fcn.100d0e90
lea esi, [esp + 0x2c]
call fcn.10009610
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
jmp 0x100bec73
cmp dword [esp + 0x18], 0x7fffffff
lea eax, [esp + 0x24]
jg 0x100bed00
lea eax, [esp + 0x18]
mov ecx, dword [eax]
mov dword [ebp + 0x4c0], ecx
mov edx, dword [ebp + 0x2e0]
mov dword [edx + 0xbb0], 2
mov eax, dword [ebp + 0x43c]
xor edi, edi
mov dword [ebp + 0x43c], edi
mov ecx, dword [ebp + 0x440]
mov dword [ebp + 0x440], edi
mov edx, dword [ebp + 0x444]
lea esi, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [ebp + 0x444], edi
mov dword [esp + 0x78], 0xffffffff
call fcn.10007d20
lea esi, [ebp + 0x448]
mov ecx, esi
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], edi
call fcn.100b5e40
lea ecx, [esp + 0x2c]
call fcn.1005db90
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x34], esp
sub esp, 8
mov dword [esp + 0x48], edi
mov dword [esp + 0x3c], esp
lea ebx, [ebp + 0x1c]
mov edi, esp
mov dword [esp + 0x3c], eax
call fcn.100d2250
mov eax, dword [esp + 0x48]
movzx ecx, byte [0x10155709]
movzx edx, byte [0x1015570d]
push eax
mov eax, 0x100bee40
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
call fcn.10046180
add esp, 0x1c
lea edi, [esp + 0x5c]
call fcn.100d5660
mov eax, edi
mov dword [esp + 0x78], 4
mov ebx, esi
mov esi, dword [ebp + 0xa8]
push eax
call fcn.100b0ee0
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x100bee20
test al, 1
jne 0x100bee20
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x100bee20
lea ecx, [esp + 0x54]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret