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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xcc
mov esi, dword [esp + 0xec]
mov eax, 0xffffffec
cmp esi, 0xa
jb getsockopt
mov edi, dword [esp + 0xe8]
movzx eax, word [edi]
movzx edx, word [edi + 2]
movzx ecx, word [edi + 4]
lea ebx, [eax + edx]
add ebx, ecx
add ebx, 6
sub esi, ebx
jae 0x765097
mov eax, 0xffffffec
jmp inet_ntoa
test eax, eax
je 0x7650fb
mov ebx, dword [esp + 0xf0]
mov dword [esp + 0x8c], ebx
movzx ebx, word [ebx]
mov dword [esp + 0xa8], ebx
lea ebx, [edi + 6]
lea ebp, [edi + eax]
add ebp, 6
mov dword [esp + 0x80], ebx
cmp ax, 4
jb recv
lea eax, [ebp - 4]
mov dword [esp + 0x7c], eax
mov edi, dword [ebp - 4]
mov dword [esp + 0x74], edi
mov eax, 0xffffffff
cmp edi, 0x1000000
jb send
shr edi, 0x18
bsr eax, edi
not eax
add eax, 9
mov dword [esp + 0x78], eax
test edx, edx
jne 0x76515a
mov eax, 0xffffffb8
jmp 0x765856
mov dword [esp + 0x7c], ebx
movzx ebx, byte [ebx]
mov dword [esp + 0x74], ebx
cmp eax, 2
je 0x76512b
cmp eax, 3
jne 0x765138
mov dword [esp + 4], ebp
movzx ebp, byte [edi + 8]
shl ebp, 0x10
or ebx, ebp
mov ebp, dword [esp + 4]
movzx edi, byte [edi + 7]
shl edi, 8
add edi, ebx
mov dword [esp + 0x74], edi
movzx edi, byte [ebp - 1]
test edi, edi
je 0x765851
bsr edi, edi
xor edi, 0x1f
shl eax, 3
sub edi, eax
add edi, 9
mov dword [esp + 0x78], edi
test edx, edx
je 0x7650fb
lea ebx, [edx + ebp]
mov dword [esp + 0x70], ebp
cmp dx, 4
jb 0x765190
lea eax, [ebx - 4]
mov dword [esp + 0x6c], eax
mov edx, dword [ebx - 4]
mov dword [esp + 0x64], edx
mov eax, 0xffffffff
cmp edx, 0x1000000
jb 0x765856
shr edx, 0x18
bsr eax, edx
not eax
jmp 0x7651d3
mov dword [esp + 0x6c], ebp
movzx eax, byte [ebp]
mov dword [esp + 0x64], eax
cmp edx, 2
je 0x7651af
cmp edx, 3
jne 0x7651bc
movzx edi, byte [ebp + 2]
shl edi, 0x10
or eax, edi
movzx edi, byte [ebp + 1]
shl edi, 8
add edi, eax
mov dword [esp + 0x64], edi
movzx eax, byte [ebx - 1]
test eax, eax
je 0x765851
bsr eax, eax
xor eax, 0x1f
shl edx, 3
sub eax, edx
add eax, 9
mov dword [esp + 0x68], eax
mov eax, 0xffffffb8
test ecx, ecx
je 0x765856
lea edx, [ebx + ecx]
mov dword [esp + 0x60], ebx
cmp cx, 4
jb 0x76521d
lea eax, [edx - 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [edx - 4]
mov dword [esp + 0x54], ecx
mov eax, 0xffffffff
cmp ecx, 0x1000000
jb 0x765856
shr ecx, 0x18
bsr eax, ecx
not eax
jmp 0x76525f
mov dword [esp + 0x5c], ebx
movzx eax, byte [ebx]
mov dword [esp + 0x54], eax
cmp ecx, 2
je 0x76523b
cmp ecx, 3
jne 0x765248
movzx edi, byte [ebx + 2]
shl edi, 0x10
or eax, edi
movzx edi, byte [ebx + 1]
shl edi, 8
add edi, eax
mov dword [esp + 0x54], edi
movzx eax, byte [edx - 1]
test eax, eax
je 0x765851
bsr eax, eax
xor eax, 0x1f
shl ecx, 3
sub eax, ecx
add eax, 9
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x94]
push esi
call fcn.00764b20
add esp, 4
cmp eax, 0xffffff88
ja 0x765856
mov eax, dword [esp + 0xe4]
mov edx, dword [esp + 0xe0]
lea esi, [edx + eax]
add dword [esp + 0x8c], 2
lea ecx, [eax + 3]
shr ecx, 2
lea eax, [edx + ecx]
mov dword [esp + 0x84], eax
add eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], ecx
lea edi, [eax + ecx]
lea ecx, [esp + 0x74]
call fcn.00765990
mov ebp, eax
lea ecx, [esp + 0x64]
call fcn.00765990
mov ebx, eax
or ebx, ebp
lea ecx, [esp + 0x54]
call fcn.00765990
mov ebp, eax
or ebp, ebx
lea ecx, [esp + 0x94]
call fcn.00765990
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x4c], ecx
or eax, ebp
mov dword [esp + 0xac], esi
mov dword [esp + 0xa4], edi
jne 0x765861
lea eax, [esi - 7]
mov dword [esp + 0xc8], eax
cmp edi, eax
jae 0x765861
mov eax, dword [esp + 0xa8]
neg eax
and eax, 0x1f
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xb4], eax
add eax, 4
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xb0], eax
lea eax, [eax + 4]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x40], eax
lea eax, [eax + 4]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xa0]
mov ebp, eax
lea eax, [eax + 4]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x9c]
mov eax, dword [esp + 0x44]
lea eax, [eax + eax*2]
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x98]
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x1c], edi
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp]
shl ebp, cl
mov ebx, dword [esp + 0x90]
mov ecx, ebx
shr ebp, cl
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x28]
shl esi, cl
mov ecx, ebx
shr esi, cl
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x24]
shl edx, cl
mov ecx, ebx
shr edx, cl
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x8c]
movzx eax, byte [edx + ebp*2 + 1]
add eax, dword [esp]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
shl eax, cl
mov ecx, ebx
shr eax, cl
mov dword [esp + 0x88], eax
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
shl edi, cl
mov ecx, ebx
shr edi, cl
mov dword [esp], edi
movzx ecx, byte [edx + ebp*2]
mov edi, dword [esp + 0xc]
mov byte [edi], cl
movzx ecx, byte [edx + esi*2 + 1]
add ecx, dword [esp + 8]
movzx eax, byte [edx + esi*2]
mov ebx, dword [esp + 0x44]
mov byte [edi + ebx], al
mov esi, ebx
mov eax, dword [esp + 0x10]
movzx ebx, byte [edx + eax*2 + 1]
add ebx, dword [esp + 4]
mov ebp, dword [esp + 0x28]
mov dword [esp + 8], ecx
shl ebp, cl
mov eax, dword [esp + 0x90]
mov ecx, eax
shr ebp, cl
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov ecx, ebx
shl ebp, cl
mov ecx, eax
shr ebp, cl
mov eax, dword [esp + 0x10]
movzx ecx, byte [edx + eax*2]
mov byte [edi + esi*2], cl
mov ecx, dword [esp + 0x88]
movzx eax, byte [edx + ecx*2 + 1]
add eax, dword [esp + 0x50]
movzx ecx, byte [edx + ecx*2]
mov esi, dword [esp + 0x14]
mov byte [edi + esi], cl
mov ecx, dword [esp]
movzx esi, byte [edx + ecx*2 + 1]
add esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov ecx, eax
shl ebx, cl
mov ecx, dword [esp + 0x90]
shr ebx, cl
mov eax, dword [esp]
movzx ecx, byte [edx + eax*2]
mov byte [edi + 1], cl
mov eax, dword [esp + 0xc]
movzx ecx, byte [edx + eax*2]
movzx eax, byte [edx + eax*2 + 1]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x44]
mov byte [edi + eax + 1], cl
movzx ecx, byte [edx + ebp*2]
mov byte [esp], cl
movzx ecx, byte [edx + ebp*2 + 1]
mov dword [esp + 0x10], ecx
movzx ecx, byte [esp]
mov byte [edi + eax*2 + 1], cl
movzx eax, byte [edx + ebx*2]
movzx ebp, byte [edx + ebx*2 + 1]
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x14]
mov byte [edi + ecx + 1], al
mov eax, 3
mov dword [esp], esi
cmp esi, 0x20
jbe 0x76556c
mov dword [esp + 0xc], 3
jmp 0x7655ee
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0xc4]
jae 0x7655ba
mov ebx, ecx
mov esi, dword [esp + 0xb4]
sub ebx, esi
je 0x7655e0
mov edi, dword [esp]
shr edi, 3
mov dword [esp + 0x18], ebp
mov ebp, ecx
sub ebp, edi
xor edx, edx
cmp ebp, esi
mov ebp, dword [esp + 0x18]
setb dl
mov dword [esp + 0xc], edx
cmovb edi, ebx
sub ecx, edi
shl edi, 3
sub dword [esp], edi
mov dword [esp + 0x3c], ecx
mov edx, dword [ecx]
mov dword [esp + 0x2c], edx
jmp 0x7655ee
mov edx, ecx
mov esi, dword [esp]
mov ecx, esi
shr ecx, 3
sub edx, ecx
and esi, 7
mov dword [esp], esi
mov dword [esp + 0x3c], edx
mov ecx, dword [edx]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc], 0
jmp 0x7655ee
xor ecx, ecx
cmp dword [esp], 0x20
sete cl
inc ecx
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 8]
add ebx, dword [esp + 0x88]
cmp ebx, 0x20
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
jbe 0x765617
mov dword [esp + 8], ebx
mov esi, dword [esp + 0x20]
jmp 0x7656a2
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0xc0]
mov esi, dword [esp + 0x20]
jae 0x76566f
mov dword [esp + 0x18], ebp
mov edi, eax
mov ebp, dword [esp + 0xb0]
sub edi, ebp
mov dword [esp + 8], ebx
je 0x765691
mov edx, ebx
shr edx, 3
mov ebx, eax
sub ebx, edx
mov esi, eax
xor eax, eax
cmp ebx, ebp
setb al
cmovb edx, edi
sub esi, edx
shl edx, 3
sub dword [esp + 8], edx
mov dword [esp + 0x38], esi
mov edx, dword [esi]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x40]
jmp 0x76569a
mov edx, eax
mov eax, ebx
shr eax, 3
sub edx, eax
and ebx, 7
mov dword [esp + 8], ebx
mov dword [esp + 0x38], edx
mov eax, dword [edx]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x28], eax
xor eax, eax
jmp 0x7656a2
xor eax, eax
cmp ebx, 0x20
sete al
inc eax
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 4]
add ebx, dword [esp + 0x10]
mov dword [esp + 0x10], 3
mov dword [esp + 4], ebx
cmp ebx, 0x20
jbe 0x7656d4
mov edx, 3
mov ebx, dword [esp + 0x50]
add ebx, ebp
cmp ebx, 0x20
ja 0x7657b3
jmp 0x76575c
cmp ecx, dword [esp + 0xbc]
jae 0x76571b
mov edi, ecx
sub edi, edx
je 0x765742
mov ebx, dword [esp + 4]
mov esi, ebx
shr esi, 3
mov dword [esp + 0x18], ebp
mov ebp, ecx
sub ebp, esi
xor edx, edx
cmp ebp, dword [esp + 0x40]
mov ebp, dword [esp + 0x18]
setb dl
cmovb esi, edi
sub ecx, esi
shl esi, 3
sub ebx, esi
mov dword [esp + 4], ebx
mov esi, dword [ecx]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
jmp 0x76574d
mov ebx, dword [esp + 4]
mov edx, ebx
shr edx, 3
sub ecx, edx
and ebx, 7
mov dword [esp + 4], ebx
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
xor edx, edx
mov ebx, dword [esp + 0x50]
add ebx, ebp
cmp ebx, 0x20
ja 0x7657b3
jmp 0x76575c
xor edx, edx
cmp dword [esp + 4], 0x20
sete dl
inc edx
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x50]
add ebx, ebp
cmp ebx, 0x20
ja 0x7657b3
cmp edi, dword [esp + 0xb8]
jae 0x76579b
mov dword [esp + 0x48], ecx
mov ecx, edi
sub edi, esi
je 0x7657e2
mov esi, ebx
shr esi, 3
mov ebp, ecx
sub ebp, esi
xor ecx, ecx
cmp ebp, dword [esp + 0x20]
setb cl
mov dword [esp + 0x10], ecx
cmovb esi, edi
lea edi, [esi*8]
sub ebx, edi
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
jmp 0x7657ab
mov esi, ebx
shr esi, 3
and ebx, 7
mov dword [esp + 0x10], 0
sub edi, esi
mov esi, dword [edi]
mov dword [esp + 0x4c], esi
or eax, dword [esp + 0xc]
or eax, edx
or eax, dword [esp + 0x10]
jne 0x7657f4
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
add eax, edx
add eax, 2
add edx, 2
mov dword [esp + 0xc], edx
cmp eax, dword [esp + 0xc8]
jb 0x7653e9
jmp 0x7657f4
mov edi, ecx
mov ecx, dword [esp + 0x48]
or eax, dword [esp + 0xc]
or eax, edx
or eax, dword [esp + 0x10]
je 0x7657bf
mov eax, dword [esp]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x98], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x30]
add edx, 2
mov dword [esp + 0x9c], edi
add dword [esp + 0x14], edx
mov ebp, dword [esp + 0x44]
lea ebx, [edx + ebp*2]
add ebp, edx
mov edi, dword [esp + 0xa4]
mov ecx, dword [esp + 0x84]
jmp 0x765879
mov eax, 0xffffffff
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x84]
mov ebp, ecx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
cmp edx, ecx
ja 0x76508d
cmp ebp, dword [esp + 0x34]
ja 0x76508d
mov eax, 0xffffffec
cmp ebx, edi
ja 0x765856
mov eax, ecx
mov ecx, edx
lea edx, [esp + 0x74]
mov edi, dword [esp + 0xa8]
push edi
mov esi, dword [esp + 0x90]
push esi
push eax
call fcn.00764bb0
add esp, 0xc
lea edx, [esp + 0x64]
mov ecx, ebp
push edi
push esi
push dword [esp + 0x3c]
call fcn.00764bb0
add esp, 0xc
lea edx, [esp + 0x54]
mov ecx, ebx
push edi
push esi
push dword [esp + 0xac]
call fcn.00764bb0
add esp, 0xc
lea edx, [esp + 0x94]
mov ecx, dword [esp + 0x14]
push edi
push esi
push dword [esp + 0xb4]
call fcn.00764bb0
add esp, 0xc
mov ecx, dword [esp + 0x7c]
xor ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
xor eax, 0x20
or eax, ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
xor edx, dword [esp + 0x70]
xor ecx, 0x20
or ecx, edx
mov edx, dword [esp + 0x5c]
xor edx, dword [esp + 0x60]
mov esi, dword [esp + 0x58]
xor esi, 0x20
or esi, edx
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
xor edi, dword [esp + 0xa0]
xor edx, 0x20
or edx, edi
or edx, esi
or edx, ecx
or edx, eax
mov eax, 0xffffffec
mov ecx, dword [esp + 0xe4]
cmovne ecx, eax
mov eax, ecx
jmp 0x765856