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

Disassembly:
mov eax, 0x44
call fcn.0059eec0
mov eax, dword [0x647f80]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x54]
push edi
mov dword [esp + 0x34], eax
lea edi, [ebp + 7]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
shr edi, 3
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ecx
cmp ebp, 0x40
jg 0x4f697b
movzx eax, byte [ecx + 1]
movzx edx, byte [ecx]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ecx + 5]
shl eax, 8
push ebx
movzx ebx, byte [ecx + 4]
movzx ecx, byte [ecx + 7]
or ebx, eax
mov eax, dword [esp + 0x3c]
shl ecx, 8
mov dword [esp + 0x14], edx
movzx eax, byte [eax + 6]
or ecx, eax
mov eax, dword [esp + 0x64]
shl ecx, 0x10
or ebx, ecx
cmp eax, edi
jb 0x4f6945
cmp dword [esp + 0x78], 0
mov ecx, ebp
je 0x4f661f
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x4f631b
dec ecx
or ecx, 0xfffffff8
inc ecx
mov ebp, dword [esp + 0x58]
mov byte [esp + 0x10], 8
sub byte [esp + 0x10], cl
mov dword [esp + 0x18], ecx
nop dword [eax]
push dword [esp + 0x30]
sub eax, edi
mov dword [esp + 0x2c], edx
push dword [esp + 0x38]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x30]
push dword [esp + 0x40]
mov dword [esp + 0x38], ebx
push eax
call fcn.004025a0
lea eax, [edi - 1]
add esp, 0x10
add ebp, edi
xor ecx, ecx
xor edx, edx
cmp eax, 7
ja case.default.0x4f6365
jmp dword [eax*4 + 0x4f6990]
movzx ecx, byte [ebp - 1]
dec ebp
shl ecx, 0x18
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 8
or ecx, eax
movzx eax, byte [ebp - 1]
dec ebp
or ecx, eax
movzx edx, byte [ebp - 1]
dec ebp
shl edx, 0x18
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 0x10
or edx, eax
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 8
or edx, eax
movzx eax, byte [ebp - 1]
dec ebp
xor ecx, dword [esp + 0x2c]
or edx, eax
xor edx, dword [esp + 0x28]
lea eax, [edi - 1]
add ebp, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
add esi, edi
jmp switch.0x004f63e4
xor edx, dword [esp + 0x28]
add ebp, edi
xor ecx, dword [esp + 0x2c]
add esi, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
cmp eax, 7
ja case.default.0x4f63e4
jmp dword [eax*4 + 0x4f69b0]
dec esi
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
dec esi
mov eax, ecx
shr eax, 0x10
mov byte [esi], al
dec esi
mov eax, ecx
shr eax, 8
mov byte [esi], al
dec esi
mov byte [esi], cl
dec esi
mov eax, edx
shr eax, 0x18
mov byte [esi], al
dec esi
mov eax, edx
shr eax, 0x10
mov byte [esi], al
dec esi
mov eax, edx
shr eax, 8
mov byte [esi], al
dec esi
mov byte [esi], dl
mov eax, dword [esp + 0x60]
add esi, edi
cmp eax, 0x20
jne 0x4f6437
mov edx, ebx
mov ebx, dword [esp + 0x24]
jmp 0x4f660a
cmp eax, 0x40
jne 0x4f6443
mov ebx, ecx
jmp 0x4f660a
mov ecx, dword [esp + 0x14]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x41], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x42], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x45], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x46], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x49], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x4a], al
mov byte [esp + 0x40], cl
shr ecx, 0x18
mov byte [esp + 0x43], cl
mov ecx, dword [esp + 0x20]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x4d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x44], bl
shr ebx, 0x18
mov byte [esp + 0x4e], al
xor eax, eax
mov byte [esp + 0x47], bl
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x48], dl
shr edx, 0x18
mov byte [esp + 0x4c], cl
shr ecx, 0x18
test ebx, ebx
mov byte [esp + 0x4b], dl
setne al
mov byte [esp + 0x4f], cl
add eax, 8
push eax
mov eax, dword [esp + 0x64]
mov eax, eax
test eax, eax
jns 0x4f64db
add eax, 7
sar eax, 3
lea ecx, [esp + 0x44]
add eax, ecx
push eax
mov eax, ecx
push eax
call fcn.0059fdf0
add esp, 0xc
test ebx, ebx
je 0x4f65a8
mov dl, byte [esp + 0x41]
mov cl, byte [esp + 0x10]
mov ch, dl
mov al, byte [esp + 0x40]
shr ch, cl
mov cl, bl
mov bl, byte [esp + 0x10]
shl al, cl
mov cl, bl
or ch, al
mov al, byte [esp + 0x42]
mov bh, al
shr bh, cl
mov cl, byte [esp + 0x18]
shl dl, cl
mov cl, bl
or bh, dl
mov dl, byte [esp + 0x43]
mov ah, dl
shr ah, cl
mov cl, byte [esp + 0x18]
shl al, cl
mov cl, bl
or ah, al
mov al, byte [esp + 0x44]
mov dh, al
shr dh, cl
mov cl, byte [esp + 0x18]
shl dl, cl
mov cl, byte [esp + 0x10]
or dh, dl
mov dl, byte [esp + 0x45]
mov bl, dl
shr bl, cl
mov cl, byte [esp + 0x18]
shl al, cl
mov cl, byte [esp + 0x10]
or bl, al
mov byte [esp + 0x13], bl
mov bl, byte [esp + 0x46]
mov al, bl
shr al, cl
mov cl, byte [esp + 0x18]
shl dl, cl
mov cl, byte [esp + 0x10]
or al, dl
mov byte [esp + 0x12], al
mov al, byte [esp + 0x47]
mov dl, al
shr dl, cl
mov cl, byte [esp + 0x18]
shl bl, cl
mov cl, byte [esp + 0x10]
or dl, bl
mov bl, byte [esp + 0x48]
shr bl, cl
mov cl, byte [esp + 0x18]
shl al, cl
mov cl, byte [esp + 0x13]
or bl, al
mov byte [esp + 0x11], dl
jmp 0x4f65d0
mov al, byte [esp + 0x46]
mov bl, byte [esp + 0x47]
mov cl, byte [esp + 0x44]
mov dh, byte [esp + 0x43]
mov ah, byte [esp + 0x42]
mov bh, byte [esp + 0x41]
mov ch, byte [esp + 0x40]
mov byte [esp + 0x11], al
mov al, byte [esp + 0x45]
mov byte [esp + 0x12], al
movzx edx, dh
shl edx, 8
movzx eax, ah
or edx, eax
movzx eax, bh
shl edx, 8
or edx, eax
movzx ebx, bl
shl edx, 8
movzx eax, ch
or edx, eax
shl ebx, 8
movzx eax, byte [esp + 0x11]
or ebx, eax
movzx eax, byte [esp + 0x12]
shl ebx, 8
or ebx, eax
movzx eax, cl
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], edx
cmp eax, edi
jae 0x4f6330
jmp 0x4f6945
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x4f662c
dec ecx
or ecx, 0xfffffff8
inc ecx
mov ebp, dword [esp + 0x58]
mov byte [esp + 0x10], 8
sub byte [esp + 0x10], cl
mov dword [esp + 0x24], ecx
nop dword [eax]
push dword [esp + 0x30]
sub eax, edi
mov dword [esp + 0x2c], edx
push dword [esp + 0x38]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x30]
push dword [esp + 0x40]
mov dword [esp + 0x38], ebx
push eax
call fcn.004025a0
xor ecx, ecx
lea eax, [edi - 1]
xor edx, edx
mov dword [esp + 0x28], ecx
add esp, 0x10
mov dword [esp + 0x20], edx
add ebp, edi
cmp eax, 7
ja case.default.0x4f667d
jmp dword [eax*4 + 0x4f69d0]
movzx ecx, byte [ebp - 1]
dec ebp
shl ecx, 0x18
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 8
or ecx, eax
movzx eax, byte [ebp - 1]
dec ebp
or ecx, eax
mov dword [esp + 0x18], ecx
movzx edx, byte [ebp - 1]
dec ebp
shl edx, 0x18
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 0x10
or edx, eax
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 8
or edx, eax
movzx eax, byte [ebp - 1]
dec ebp
or edx, eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x60]
add ebp, edi
cmp eax, 0x20
jne 0x4f66ea
mov ecx, dword [esp + 0x20]
mov edx, ebx
mov ebx, ecx
jmp 0x4f68cf
cmp eax, 0x40
jne 0x4f66f6
mov ebx, ecx
jmp 0x4f68cb
mov ecx, dword [esp + 0x14]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x41], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x42], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x45], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x46], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x49], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x4a], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x4b], al
mov byte [esp + 0x40], cl
shr ecx, 0x18
mov byte [esp + 0x43], cl
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x4d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x4e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x44], bl
shr ebx, 0x18
mov byte [esp + 0x4f], al
xor eax, eax
mov byte [esp + 0x47], bl
mov ebx, dword [esp + 0x24]
test ebx, ebx
mov byte [esp + 0x48], dl
setne al
mov byte [esp + 0x4c], cl
add eax, 8
push eax
mov eax, dword [esp + 0x64]
mov eax, eax
test eax, eax
jns 0x4f6792
add eax, 7
sar eax, 3
lea ecx, [esp + 0x44]
add eax, ecx
push eax
mov eax, ecx
push eax
call fcn.0059fdf0
add esp, 0xc
test ebx, ebx
je 0x4f6863
mov dh, byte [esp + 0x10]
mov dl, byte [esp + 0x41]
mov cl, dh
mov al, byte [esp + 0x40]
mov ch, dl
shr ch, cl
mov cl, bl
shl al, cl
mov cl, dh
or ch, al
mov al, byte [esp + 0x42]
mov ah, al
shr ah, cl
mov cl, bl
shl dl, cl
mov cl, dh
or ah, dl
mov dl, byte [esp + 0x43]
mov byte [esp + 0x1e], ah
mov ah, dl
shr ah, cl
mov cl, bl
shl al, cl
mov cl, byte [esp + 0x10]
or ah, al
mov al, byte [esp + 0x44]
mov dh, al
shr dh, cl
mov cl, bl
shl dl, cl
mov cl, byte [esp + 0x10]
or dh, dl
mov dl, byte [esp + 0x45]
mov byte [esp + 0x1f], dh
mov dh, dl
shr dh, cl
mov cl, bl
mov bl, byte [esp + 0x46]
shl al, cl
mov cl, byte [esp + 0x10]
or dh, al
mov al, bl
mov byte [esp + 0x13], dh
shr al, cl
mov cl, byte [esp + 0x24]
shl dl, cl
mov cl, byte [esp + 0x10]
or al, dl
mov edx, dword [esp + 0x24]
mov byte [esp + 0x11], al
mov al, byte [esp + 0x47]
mov bh, al
shr bh, cl
mov cl, dl
shl bl, cl
mov cl, byte [esp + 0x10]
or bh, bl
mov bl, byte [esp + 0x48]
shr bl, cl
mov cl, dl
shl al, cl
mov cl, byte [esp + 0x1e]
or bl, al
mov al, byte [esp + 0x1f]
mov byte [esp + 0x12], bh
jmp 0x4f688f
mov al, byte [esp + 0x46]
mov bl, byte [esp + 0x47]
mov ah, byte [esp + 0x42]
mov cl, byte [esp + 0x41]
mov ch, byte [esp + 0x40]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x45]
mov byte [esp + 0x11], al
mov al, byte [esp + 0x44]
mov byte [esp + 0x13], al
mov al, byte [esp + 0x43]
movzx edx, al
shl edx, 8
movzx eax, ah
or edx, eax
movzx ebx, bl
shl edx, 8
movzx eax, cl
or edx, eax
shl ebx, 8
shl edx, 8
movzx eax, ch
or edx, eax
movzx eax, byte [esp + 0x12]
or ebx, eax
movzx eax, byte [esp + 0x11]
shl ebx, 8
or ebx, eax
movzx eax, byte [esp + 0x13]
shl ebx, 8
or ebx, eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add esi, edi
xor eax, dword [esp + 0x2c]
xor ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
lea edx, [edi - 1]
mov dword [esp + 0x18], eax
cmp edx, 7
ja case.default.0x4f68f0
lea edx, [edi - 1]
jmp dword [edx*4 + 0x4f69f0]
dec esi
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x18]
dec esi
shr eax, 0x10
mov byte [esi], al
mov eax, dword [esp + 0x18]
dec esi
shr eax, 8
mov byte [esi], al
mov eax, dword [esp + 0x18]
dec esi
mov byte [esi], al
dec esi
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
dec esi
mov eax, ecx
shr eax, 0x10
mov byte [esi], al
dec esi
mov eax, ecx
shr eax, 8
mov byte [esi], al
dec esi
mov byte [esi], cl
mov eax, dword [esp + 0x64]
add esi, edi
mov edx, dword [esp + 0x14]
cmp eax, edi
jae 0x4f6640
mov ecx, dword [esp + 0x3c]
mov eax, edx
shr eax, 8
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 5], al
mov eax, ebx
mov byte [ecx], dl
shr edx, 0x18
mov byte [ecx + 4], bl
shr eax, 0x10
shr ebx, 0x18
mov byte [ecx + 7], bl
mov byte [ecx + 3], dl
mov byte [ecx + 6], al
pop ebx
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0059e4d3
add esp, 0x44
ret